Hi,
I'm interested in passing the min_score option to elastic when searching via App Search (from javascript), as described in the elastic docs:
When I try to do pass that option in my query, App Search throws with the error:
Options contains invalid key: min_score
Is there a way to pass other options that are available in Elasticsearch but are not necessarily called out in the App Search wrapper? Perhaps there is an escape hatch that I can use to execute a "raw" elastic query like when you're using a DB ORM, can't get it to do what you want, and just want to write the SQL query?
Specifically, I want to do this for 2 reasons...
- I don't want to display results that are very far off from the query to my users.
- I want to get a list of facets that apply to my results (with counts) but I don't want facets pertaining to results that are far down the list to be returned.... i.e. it would be great to cut off my list at a point that I define using min_score, so I don't get facets pertaining to the 1000th result returned.
Any help appreciated,
Dan