Skip to content

Inconsistent nbHits after enabling paginationLimitedTo #387

@ehoffmann

Description

@ehoffmann
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions