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

Ability to set group.ngroups option #923

Merged
merged 7 commits into from
Nov 6, 2018
Merged

Conversation

giovannelli
Copy link
Contributor

Hi,
by default the Sunspot::Query::Group.to_params method has the group.ngroups option set to "true". If you don't need the total groups counter, ngroups=false increases performances, here's why we've added this option. Paginated collections return wrong values for total_pages, total_count and last_page? if ngroups is false.

Thank you,
Duccio

.travis.yml Outdated
before_install: gem install bundler
before_install:
- gem install bundler
- gem install psych -v 2.2.4
Copy link
Collaborator

Choose a reason for hiding this comment

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

@giovannelli can you explain why was this required?

@serggl
Copy link
Collaborator

serggl commented Nov 6, 2018

looks great. I found only one question about psych usage

@giovannelli
Copy link
Contributor Author

Hi @serggl,
it's just to avoid the error reported in this build: https://travis-ci.org/extendi/sunspot/jobs/451261053.

Probably it was related to the concurrent-ruby version 1.1.1, they have just released a newer version.
I'll try to rerun tests without installing the psych gem.

Thank you

@serggl serggl merged commit 3e5041a into sunspot:master Nov 6, 2018
@giovannelli
Copy link
Contributor Author

Thank you!

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.

2 participants