Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for range-based ID searching #819

Merged
merged 44 commits into from
Dec 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
40bc413
Add new query_builder functions
ItIsJordan Jul 17, 2024
c5ef12d
Add range-based publication search functionality
ItIsJordan Jul 17, 2024
07c48c2
Add tests
ItIsJordan Jul 17, 2024
96625e1
Merge branch 'main' into search-range
ItIsJordan Jul 18, 2024
2340aba
FIx data search bug (add removed line)
ItIsJordan Jul 24, 2024
878394f
Add search term shorthand publication_recid->recid
ItIsJordan Jul 24, 2024
590deb3
Improve range query parser
ItIsJordan Jul 24, 2024
562a610
Add descending order to range query search
ItIsJordan Jul 24, 2024
e9137cf
Update tests to use correct range search syntax
ItIsJordan Jul 24, 2024
219b8ae
Add query parser test case for publication_recid
ItIsJordan Aug 6, 2024
bf4a1f2
Update search help for range-based searching
ItIsJordan Aug 7, 2024
369b4b9
Merge branch 'main' into search-range
ItIsJordan Aug 7, 2024
f856eec
Inspire ID range-searching (AND mapping change)
ItIsJordan Aug 7, 2024
44c1ce3
Update search_help for inspire ID range searching
ItIsJordan Aug 7, 2024
13e9e20
Make range query more whitespace tolerant
ItIsJordan Aug 7, 2024
b5eecf1
Add test_query_parser_is_range_query cases for whitespace tolerance
ItIsJordan Aug 7, 2024
07e4c28
Comment
ItIsJordan Aug 7, 2024
e99062b
Add test for range-searching
ItIsJordan Aug 13, 2024
43d1edb
Merge branch 'main' into search-range
ItIsJordan Aug 13, 2024
fba64f1
Update range search query test
ItIsJordan Aug 13, 2024
c06e753
Merge branch 'main' into search-range
ItIsJordan Sep 16, 2024
15208cb
Improve/fix range query functionality
ItIsJordan Sep 19, 2024
227de4d
Add tests for range queries
ItIsJordan Sep 19, 2024
19f5863
Update comments
ItIsJordan Sep 20, 2024
380bc56
Improve get_range_query
ItIsJordan Sep 20, 2024
0ea3385
Improve get_range_queries test
ItIsJordan Sep 20, 2024
2b37bb0
Merge branch 'main' into search-range
ItIsJordan Oct 3, 2024
88274d2
Improve range-search logic
ItIsJordan Oct 4, 2024
b88d1ac
Update search testing
ItIsJordan Oct 4, 2024
303058e
Add inspire_id and publication_recid as possible sorting fields
ItIsJordan Oct 4, 2024
b62f27b
Remove display of recid and inspire id search options
ItIsJordan Oct 10, 2024
c1d48fb
Fix publication_recid default sort order
ItIsJordan Oct 10, 2024
27b8fad
Add new recid and inspire_id keywords to search function docstring
ItIsJordan Oct 10, 2024
10caeef
Update verify_range_query_term docstring
ItIsJordan Oct 10, 2024
acdd8b0
Update testing to account for correct range keyword
ItIsJordan Oct 10, 2024
bdd837d
Update range query result tests
ItIsJordan Oct 10, 2024
eddd3fb
Merge branch 'main' into search-range
ItIsJordan Nov 13, 2024
f48a2e3
Add "inspire_id" as a range search term
ItIsJordan Nov 27, 2024
71c69cc
Add "publication_recid" as a sort field
ItIsJordan Nov 27, 2024
5f80985
Fix publication_recid/recid search
ItIsJordan Dec 3, 2024
2a9c3fb
Update range search testing
ItIsJordan Dec 3, 2024
b62f548
Update range tests
ItIsJordan Dec 3, 2024
946e749
Update range query parser test
ItIsJordan Dec 3, 2024
16d3e8c
Add more range query test cases
ItIsJordan Dec 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update verify_range_query_term docstring
Update verify_range_query_term docstring to clarify that query used is a parsed query.
ItIsJordan committed Oct 10, 2024
commit 10caeef12c6d42775efb224f93395eb878e1b47f
2 changes: 1 addition & 1 deletion hepdata/ext/opensearch/query_builder.py
Original file line number Diff line number Diff line change
@@ -88,7 +88,7 @@ def _quote_phrase(phrase):
@staticmethod
def verify_range_query_term(query):
"""
Verifies whether a query string contains a range-based query.
Verifies whether a parsed query string contains a range-based query.
If it does, return either that search keyword,
or the "default" keyword for default search ordering.