The motivation is that I would like to combine the KNN search with other bool clauses, or combine the score with other queries. Preferably, I would like to do something like
GET localhost:9200/twitter_images/twitter_image/_search
{
"size": 10,
"query": {
"bool": {
"should": [
{"term": {"name": "Some Name"}},
{"aknn": {
"vec": [0.1, 0.2, ...],
"k1": 1000,
}},
],
}
}
}
The motivation is that I would like to combine the KNN search with other bool clauses, or combine the score with other queries. Preferably, I would like to do something like