fast-elasticsearch-vector-scoring
fast-elasticsearch-vector-scoring copied to clipboard
limit the number of returned documents
Is it possible to limit the number of returned documents by setting a threshold for document cosine similarity?
sure, by using this elasticsearch feature:
https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-request-min-score.html
just add min_score
to the query body