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

Inconsistent counts between search() and execute() when using min_score #1632

Open
ipsbrittainm opened this issue Nov 4, 2022 · 0 comments
Labels

Comments

@ipsbrittainm
Copy link

The min_score is a top-level argument in the body, which must currently be injected via:

s = Search().query().extra(min_score=4.0)

However, this produces different counts between the count() and the execute() functions because the count() function ignores this extra data.

Search.to_dict() function:

if not count:
    d.update(recursive_to_dict(self._extra))

Related issue:
#462

@miguelgrinberg miguelgrinberg added the Category: Bug Something isn't right label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants