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

Added computeTotalHits configuration #34

Merged
merged 2 commits into from
Sep 10, 2019
Merged

Added computeTotalHits configuration #34

merged 2 commits into from
Sep 10, 2019

Conversation

mcshlain
Copy link
Contributor

@mcshlain mcshlain commented Sep 8, 2019

The current default behavior is to compute totalHits on each query. This PR adds a configuration option computeTotalHits = true (the default is the existing behavior).

The reason for this PR is because the engine becomes unusable on very large data sets when many matches exist (wikipedia for example, with a rather general query). With this fix, by setting computeTotalHits = false you can get fast results without having to wait for the computation of totalHits.

@marcovzla marcovzla merged commit 4f5979d into lum-ai:master Sep 10, 2019
@marcovzla
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants