Query rewriting phase 1#75
Open
kelockhart wants to merge 4 commits into
Open
Conversation
Member
Author
|
Added a reference-string resolution branch to the search preprocessing flow, adapted from the adssh PR approach, while preserving existing unfielded citation rewriting. What was added
Tests added
ValidationRan full unittest suite:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented a new citation-style query rewrite strategy for unfielded q searches to improve relevance for ADS/SciX input patterns.
What changed
solr/query_rewrite.pysolr/views.pyconfig.pySOLR_SERVICE_ENABLE_CITATION_STYLE_REWRITE = Truesolr/tests/unittests/test_query_rewrite.pysolr/tests/unittests/test_solr.pySupported rewrite patterns
(first_author:"lastname" OR author:"lastname") year:YYYYfirst_author:"lastname1" author:"lastname2" year:YYYY((first_author:"lastname1" author:("lastname2" "lastname3")) OR (first_author:"lastname1 lastname2" author:"lastname3")) year:YYYY(supports both three-author interpretation and double-barreled first-author interpretation)
first_author:"lastname" author_count:[2 TO 10000] year:YYYY((first_author:"lastname1 lastname2" author_count:[2 TO 10000]) OR (first_author:"lastname1" author:"lastname2" author_count:[3 TO 10000])) year:YYYY(author:"name1 name2" OR author("name1" "name2")) year:YYYYAdditional behavior details
Validation
Full unit test suite run: