-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
154 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,75 @@ | ||
# Search | ||
|
||
These endpoints perform searches on submissions. | ||
|
||
|
||
# get /search | ||
|
||
> Retrieve search results | ||
Use this endpoint to return the list of submission IDs corresponding to a | ||
search. | ||
|
||
Pass the search query in the `q` parameter. The list of matching IDs is | ||
returned in the `ids` response property. | ||
|
||
The `t`, `qt`, `reviewer`, `sort`, and `scoresort` parameters can also affect | ||
the search. `t` defines the collection of submissions to search. `t=viewable` | ||
checks all submissions the user can view; the default collection is often | ||
narrower (a typical default is `t=s`, which searches complete submissions). | ||
|
||
The `groups` response property is an array of annotations that apply to the | ||
search, and is returned for `THEN` searches, `LEGEND` searches, and searches | ||
on tags with annotations. Each annotation contains a position `pos`, and may | ||
also have a `legend`, a `search`, an `annoid`, and other properties. `pos` is | ||
an integer index into the `ids` array; it ranges from 0 to the number of items | ||
in that array. Annotations with a given `pos` should appear *before* the paper | ||
at that index in the `ids` array. For instance, this response might be | ||
returned for the search `10-12 THEN 15-18`: | ||
|
||
```json | ||
{ | ||
"ok": true, | ||
"message_list": [], | ||
"ids": [10, 12, 18], | ||
"groups": [ | ||
{ | ||
"pos": 0, | ||
"legend": "10-12", | ||
"search": "10-12" | ||
}, | ||
{ | ||
"pos": 2, | ||
"legend": "15-18", | ||
"search": "15-18" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
* response_schema search_response | ||
|
||
|
||
# get /fieldhtml | ||
|
||
> Retrieve search results as field HTML | ||
|
||
# get /fieldtext | ||
|
||
> Retrieve list field text | ||
|
||
# get /searchactions | ||
|
||
> Retrieve available search actions | ||
|
||
# get /searchaction | ||
|
||
> Perform search action | ||
|
||
# post /searchaction | ||
|
||
> Perform search action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters