Skip to content

Commit 9869555

Browse files
authored
related_results is deprecated (#17)
2 parents d92acfd + 060c5b9 commit 9869555

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

README.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -140,36 +140,6 @@ code = sc.code_result(4061576)
140140
print(code)
141141
```
142142

143-
### Related Results
144-
145-
Returns an array of results given a searchcode unique code id which are considered to be duplicates.
146-
147-
#### Params
148-
149-
- `_id`: Unique identifier for the code file (required).
150-
151-
```python
152-
153-
import searchcode as sc
154-
155-
related = sc.related_results(4061576)
156-
print(related)
157-
```
158-
159-
#### Response Attribute Definitions
160-
161-
| Attribute | Description |
162-
|----------------|------------------------------------------------------------------------------------------|
163-
| **reponame** | Name of the repository which this related result belongs to. |
164-
| **source** | The source which this code result comes from. |
165-
| **sourceurl** | URL to the repository this result belongs to. |
166-
| **md5hash** | Calculated MD5 hash of the file's contents. |
167-
| **location** | Location inside the repository where this file exists. |
168-
| **language** | Name of the language which this file is identified to be. |
169-
| **linescount** | Total number of lines in this file. |
170-
| **id** | Unique ID for this code result used by searchcode, which can be used in other API calls. |
171-
| **filename** | The filename for this file. |
172-
173143
## About Searchcode
174144

175145
Searchcode is a simple, comprehensive source code search engine that indexes billions of lines of code from open-source

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "searchcode"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
description = "Python SDK for Searchcode."
55
authors = ["Ritchie Mwewa <rly0nheart@duck.com>"]
66
license = "GPLv3+"

0 commit comments

Comments
 (0)