Skip to content

Commit

Permalink
Add new recid and inspire_id keywords to search function docstring
Browse files Browse the repository at this point in the history
Add new recid and inspire_id keywords to search function docstring for the sort_field in the opensearch api.
  • Loading branch information
ItIsJordan committed Oct 10, 2024
1 parent c1d48fb commit 27b8fad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hepdata/ext/opensearch/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def search(query,
:param size: [int] max number of hits that should be returned
:param offset: [int] offset for the results (used for pagination)
:param sort_field: [string] sorting field. Currently supported fields:
"title", "collaboration", "date", "relevance"
"title", "collaboration", "date", "relevance",
"recid", "inspire_id"
:param sort_order: [string] order of the sorting either original
(for a particular field) or reversed. Supported:
'' or 'rev'
Expand Down

0 comments on commit 27b8fad

Please sign in to comment.