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

Add BC layer for track-total-hits #600

Merged

Conversation

wachterjohannes
Copy link
Member

@wachterjohannes wachterjohannes commented Nov 18, 2021

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #599
Related issues/PRs symfony/recipes-contrib#1314
License MIT

What's in this PR?

This PR set the parameter track_total_hits to allow pagination in the admin which Elasticsearch ^7.0

Why?

If not set until 7.0 elasticsearch limits the total in the response to 10000 because of the change of the default value.

To Do

  • Document the configuration for amount of articles > 10000

@wachterjohannes wachterjohannes changed the base branch from 2.x to 2.3 November 18, 2021 08:48
@wachterjohannes wachterjohannes marked this pull request as ready for review November 18, 2021 08:50
@alexander-schranz alexander-schranz enabled auto-merge (squash) November 18, 2021 08:57
@@ -37,6 +37,17 @@ sulu_route:
parent: '{object.getParent().getRoutePath()}'

ongr_elasticsearch:
# If you expect more than 10000 articles you have to set the `max_result_window` to an appropriate number
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexander-schranz alexander-schranz added the bug Error or unexpected behavior of already existing functionality label Nov 18, 2021
@alexander-schranz alexander-schranz merged commit 5afcd45 into sulu:2.3 Nov 18, 2021
@wachterjohannes wachterjohannes deleted the hotfix/track-total-results branch November 18, 2021 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Elastic search limited to 10.000 entries
2 participants