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

Added replace mode #15

Merged
merged 1 commit into from
Jan 22, 2016
Merged

Added replace mode #15

merged 1 commit into from
Jan 22, 2016

Conversation

sakama
Copy link
Contributor

@sakama sakama commented Jan 13, 2016

I added mode parameter and replace mode.

This parameter can be taken 2 choises, insert(default) and replace.

out:
  type: elasticsearch
  mode: replace       # or insert

replace

  1. If same index as alias already exists, throws config exception.
  2. Create new index
  3. Insert data into the new index. index name was generated by plugin(like _20150121-201249)
  4. Reassign alias from old indices to new index
  5. Delete existing (old) indices

@sakama sakama changed the title Added replace mode Added truncate_insert mode Jan 14, 2016
@sakama sakama changed the title Added truncate_insert mode Added truncate_insert and replace mode Jan 15, 2016
@sakama sakama force-pushed the add-replace-mode branch 3 times, most recently from fae6531 to 8db39ed Compare January 22, 2016 05:50
@sakama sakama changed the title Added truncate_insert and replace mode Added replace mode Jan 22, 2016
@muga
Copy link
Contributor

muga commented Jan 22, 2016

LGTM.

sakama added a commit that referenced this pull request Jan 22, 2016
@sakama sakama merged commit bfcd9a6 into master Jan 22, 2016
@sakama
Copy link
Contributor Author

sakama commented Jan 22, 2016

Thank you for your review. I merged.

@sakama sakama mentioned this pull request Feb 9, 2016
@sakama sakama deleted the add-replace-mode branch June 8, 2016 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants