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

Reindexing with play2-elasticsearch? #36

Open
ozgunduz opened this issue Jan 13, 2014 · 2 comments
Open

Reindexing with play2-elasticsearch? #36

ozgunduz opened this issue Jan 13, 2014 · 2 comments

Comments

@ozgunduz
Copy link

How would I use play2-elasticseach if I want to add a alias to an index to be able to do reindexing (after creating a new index I
need to change the alias to connect to the right one and I can delete the old index) ?

Also, I do not want to delete the index when the application is stopped.

This way I will minimize the downtime of the application.

Any suggestions?

@bandanag1
Copy link

Even I am interested in knowing how we can reindex. Right now in my model edit, I am calling the index() method.

@janghwan
Copy link
Contributor

It seems there is no wrapper for managing index. but you can still access them through native Elasticsearch API.

for example,
IndexClient.client.admin().indices().prepareAliases().addAlias(oldIndex, indexAlias).removeAlias(newIndex, indexAlias).execute().actionGet()

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

3 participants