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

Clear cache #679

Closed
ngouy opened this issue Jun 27, 2019 · 1 comment
Closed

Clear cache #679

ngouy opened this issue Jun 27, 2019 · 1 comment

Comments

@ngouy
Copy link

ngouy commented Jun 27, 2019

Hello

Is there a provided tool / func / rake whatever to perform this kind of operation :
https://www.elastic.co/guide/en/elasticsearch/reference/current//indices-clearcache.html
(clear search cache for exemple)

I search for it without success.

If yes I will be delighted to know what is it and maybe if it's ok for you I would submit a PR to update some guides / readme(s)


This need coms from a issue in my specs.
When testing search + order by many stuff (including SCORE)
depending on what tests ran before, scores are not always the same for the same query, so are results order

@dalthon
Copy link
Contributor

dalthon commented Feb 19, 2021

Right now we don't have this operation implemented and you could invoke this directly on elasticsearch-api client with this:
https://www.rubydoc.info/gems/elasticsearch-api/Elasticsearch/API/Indices/Actions#clear_cache-instance_method

It would be nice to add this feature, surely a PR would be welcome

cyucelen pushed a commit to cyucelen/chewy that referenced this issue Jan 28, 2023
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

2 participants