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 body_options globally in the same way you can model_options #1666

Open
schinery opened this issue Jan 15, 2024 · 0 comments
Open

Comments

@schinery
Copy link

I've just discovered I need to add body_options: { track_total_hits: true } to a number of searches, and for my use case I would really like to set this once so it is used for all Searchkick queries rather than where each search is triggered.

Basically, be able do...

Searchkick.body_options = {
  track_total_hits: true
}

And have it merged with the body_options here when a search is done.

Happy to attempt a PR if you think this would be useful?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant