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

When .UseBestBets() - and search for a BestBet term - only the BestBet item is returned #30

Open
tsolbjor opened this issue Mar 5, 2019 · 0 comments

Comments

@tsolbjor
Copy link

tsolbjor commented Mar 5, 2019

When a BestBet term is added to the query for boosting at

a constraint is added to require the bestbet to be a hit:

if (request.Query.Bool.Should.Count > 0)

All other hits to the main query is then filtered and only the BestBet is returned.

When setting request.Query.Bool.MinimumNumberShouldMatch = null; I get the expected result.

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

1 participant