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

algoliasearch hitsPerPage doesn't seems to work properly #365

Closed
Natim opened this issue Apr 10, 2018 · 5 comments
Closed

algoliasearch hitsPerPage doesn't seems to work properly #365

Natim opened this issue Apr 10, 2018 · 5 comments
Labels

Comments

@Natim
Copy link

Natim commented Apr 10, 2018

It seems to always use a bigger value than expected.

@Natim
Copy link
Author

Natim commented Apr 10, 2018

@julienbourdeau
Copy link
Contributor

Can you add more details about what you are doing and what's not working. Are you using the delete _by_query method?

@Natim
Copy link
Author

Natim commented Apr 10, 2018

I am using the index.search method and I wanted to add some configurable pagination mecanism but without success.

Sorry I meant: https://github.com/algolia/algoliasearch-client-python/blob/master/algoliasearch/index.py#L487

@julienbourdeau
Copy link
Contributor

The link point to search_disjunctive_faceting, are you using it?

You should be able to do it with

index.search('some query', {
    'page': 2,
    'hitsPerPage': 42
})

@Natim
Copy link
Author

Natim commented Apr 11, 2018

@julienbourdeau You are right both links are not related to the search method. Sorry about the noise (must have been a bit tired).

Then I am not quite sure why, I will investigate thanks.

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