Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit the number of returned documents #62

Open
Wenorm opened this issue Dec 17, 2020 · 1 comment
Open

limit the number of returned documents #62

Wenorm opened this issue Dec 17, 2020 · 1 comment

Comments

@Wenorm
Copy link

Wenorm commented Dec 17, 2020

Is it possible to limit the number of returned documents by setting a threshold for document cosine similarity?

@lior-k
Copy link
Owner

lior-k commented Dec 17, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants