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 nbHits after enabling paginationLimitedTo #387

Open
ehoffmann opened this issue Oct 5, 2020 · 0 comments
Open

Inconsistent nbHits after enabling paginationLimitedTo #387

ehoffmann opened this issue Oct 5, 2020 · 0 comments

Comments

@ehoffmann
Copy link

  • Rails version: 4.2.11.1
  • Algolia Rails integration version: 1.20.3
  • Language Version: 2.3.8p459

Description

After enabling paginationLimitedTo XXX indice's setting, I started to have inconsistent nbHits results while querying in Ruby IndexName.search('test', options).

I've noticed the JS client automatically adds scanDistinctHitsUntilPaginationLimitedTo: true option to get accurate results (For which I found no documentation anywhere)

It will be great if the Ruby client could infer this option by itself, as the JS client does. (I have to force it in Ruby for now, but I don't know if it's future proof)

Thanks for your help

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