Add 'knn' property to Search request body#1792
Conversation
|
Thanks @sethmlarson ! Responses to your questions:
|
|
@jtibshirani Sorry, my second question was a bit ambiguous. I was asking about the POST /<index>/_search
{
"query": {
"knn": {
"field": "...",
...
}
}
} |
|
No, this is not valid. The |
|
@jtibshirani That's what I thought, it looks like that snuck into the spec in a previous review. |
jtibshirani
left a comment
There was a problem hiding this comment.
This looks good to me from the API perspective (I'm not an expert in this spec though).
|
@swallez Thanks for the review, I've updated the PR with your comments. |
|
Following you can find the validation results for the APIs you have changed.
You can validate these APIs yourself by using the |
Adds changes from these PRs:
Which add the
knnproperty to the Search request body.Questions for @jtibshirani:
knnproperty for Async Search as well?knnquery filter? I didn't see it documented on elastic.co and wasn't sure if it was supposed to be there.Closes #1779