Add filter by case citations in /legal/search/ #5165
Merged
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.
Summary
In order to create the legal web search app, we need add filter by citations(statutory citation and (regulatory_citation) in MUR's search. This PR will add general filter by case_citations which used for 3 case types: murs, admin_fines and adrs(not release yet)
case_statutory_citation,
case_regulatory_citation,
case_citation_require_all
Completion criteria
Required reviewers
2 developers
Impacted areas of the application
legal search
How to test
(It is better test locally first)
python manage.py create_index
Ref test urls list: https://docs.google.com/spreadsheets/d/1l3YKu-oBzOwBHH986YdyiYaSJTFdJBNxitZkt_Ew4zA/edit#gid=1143741195
http://127.0.0.1:5000/v1/legal/search/?type=murs&case_statutory_citation=52 U.S.C. §30116&case_statutory_citation=52 U.S.C. §30122&case_regulatory_citation=11 CFR §110.4
http://127.0.0.1:5000/v1/legal/search/?type=murs&case_statutory_citation=52 U.S.C. §30116&case_statutory_citation=52 U.S.C. §30122&case_regulatory_citation=11 CFR §110.4&case_citation_require_all=True
http://127.0.0.1:5000/v1/legal/search/?type=murs&case_statutory_citation=52 U.S.C. §30104&case_regulatory_citation=11 CFR §116.10&case_citation_require_all=True