-
Notifications
You must be signed in to change notification settings - Fork 105
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
[Research] /legal/search endpoint: Respondents need capability for exact string match #5830
Comments
After researching and testing locally, I have included some notes here:
a) Set keyword search to case_insensitive, which was added in ES 7.10.0. Currently, we are using ES 7.4.0. b) When uploading respondent data to ES, convert it to upper case. |
Proposed solutionIn order to make the respondents name search more precise, we discussed doing the following:
Considerations:When using the |
We are getting more precise examples for this issue. |
What we’re after
Currently the
respondents[ ]
field searches any word that matches. We want to add the ability to add exact string match in quotes for respondent as well. This is so results can be reduced, especially for common respondent names.Ex: The search term "Salazar for Congress" currently returns many results because there are common respondent names with
for congress
in it. Limiting it to exactly that string would help narrow down the results.Action items:
https://api.open.fec.gov/v1/legal/search?case_respondents=%22Salazar+for+Congress%22&type=murs&hits_returned=20&from_hit=0&q=&api_key=NICAR16
Completion criteria
respondents
field has the capability for exact string matchThe text was updated successfully, but these errors were encountered: