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

Elastic search support #403

Closed
kimegede opened this issue Oct 12, 2015 · 7 comments
Closed

Elastic search support #403

kimegede opened this issue Oct 12, 2015 · 7 comments

Comments

@kimegede
Copy link

Would be lovely to have this supporting Elastic Search as well.

@dapicester
Copy link

A PR is on my TODO list, in the meanwhile I do something like this, in test_helper:

def es_delete_all
  Elasticsearch::Persistence.client.indices.delete index: '_all'
end

and then call it in an after block or teardown method.

Let me know if it works for you.

@mathieujobin
Copy link

+1

1 similar comment
@dduft
Copy link

dduft commented May 4, 2016

👍

@fidalgo
Copy link

fidalgo commented Jun 15, 2018

Just beware that the @dapicester solution will remove all the indices for all environments.

@dapicester
Copy link

@fidalgo I've not been using this for a long time and I cannot verify what you wrote.
However, I recall that I have two ElasticSearch instances running, one for develop environment and one for test, so whatever I do with the test instance should not affect the develop instance.

@fidalgo
Copy link

fidalgo commented Jun 18, 2018

@dapicester also using https://github.com/ankane/searchkick the indices have a suffix of the environment, like users_test. I'm not sure about using only elasticsearch-ruby.

@etagwerker
Copy link
Member

@kimegede Good idea! If someone wants to implement a new ORM, they can follow the instructions being discussed over here: #628

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

No branches or pull requests

6 participants