You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the document_highlights only returns a max of 3 hits and a max of 5 fragments. We need to return all the hits so that the user can get the full dataset. We need to understand how we can remove the limit for hits from document_highlights.
JonellaCulmer
changed the title
document_highlights limits to only 3 document hits (Bug)
MUR/ADRs: document_highlights limits to only 3 document hits (Bug)
May 9, 2024
What we’re after
Currently the document_highlights only returns a max of 3 hits and a max of 5 fragments. We need to return all the hits so that the user can get the full dataset. We need to understand how we can remove the limit for hits from document_highlights.
Elasticsearch highlight documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/highlighting.html
Example:
When searching query “Reason to believe” and doc_category_id=1 for MUR 4530, it returns 3 matching document hits, but there should be more, at least 7. This is the API call: https://api.open.fec.gov/v1/legal/search?case_no=4530&case_doc_category_id=1&type=murs&hits_returned=20&from_hit=0&q=%22Reason+to+believe%22&api_key=NICAR16
Action item(s)
Completion criteria
References/resources/technical considerations
The text was updated successfully, but these errors were encountered: