The following error message appears when attempting to use slop with a
match_phrase
query:
Error: {'status': 400, 'error': {'type': ['invalid_request_error'], 'message': 'Query clause [query] not allowed or invalid field name.'}}
Adding slop functionality would allow users to more effectively prospect for leads or search for candidates. For example:
{
"match_phrase": {
"job_title.text": {
"query": "director sales",
"slop": 1
}
}
}
This would return "director of sales" and other relevant titles without having to either use the Autocomplete API or the Job Title Enrichment API.
Created by Kade Beem
·