ES search template support
Closed this issue · 4 comments
jetnet commented
first of all - thank you very much for making search better :)
Question: are you planning to extend nboost
by adding support for search templates? E.g. a query could look like:
POST http://192.168.99.100:8000/index/_search/template
{
"id": "searchTemplate",
"params": {
"query": "my query",
"from": 0,
"size": 9
}
}
Thanks!
colethienes commented
jetnet commented
yes, it's possible to specify the search field, but Nboost would not be able to re-write the size
parameter to fetch more results, would it?
pertschuk commented
It seems like it would be relatively straightforward to re-write the size parameter, I'll add this to TODOs for the next release.
colethienes commented
I just added support for dynamically selecting fields to rerank. You can use the --query_path
to dynamically select the query field. This works via jsonpath. For example, you would use nboost --query_path body.params.query
for you case.