AntonShuvaev / elasticsearch4idea

Elasticsearch Plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/14512-elasticsearch
59 stars 8 forks source link

About copy Index and aliases #100

Open saylom99 opened 1 year ago

saylom99 commented 1 year ago

when I select menu copy index from existing index

and existing index have aliases

new index got aliases from existing index

I not sure this is bug or not but I got duplicate data from existing index because have 2 aliases

this one quite not easy for find real root cost when I start investigate

Solution : I remove aliases existing index and select menu copy index again and create new aliases again

please explain this right way about select menu something or fix this

Best Regard wind

AntonShuvaev commented 1 year ago

I've checked this with a simple test index and I can't reproduce the issue. Can you try to copy index without aliases? Maybe the issue is not related to aliases?

But anyway, I will add an option to ignore aliases when copying index.

saylom99 commented 1 year ago

Thank for help and reply, Oh yes this one relate backend API when use

@Document(indexName = Indices.PERSON_INDEX_ALIASES)

I have two index use same aliases when I call findAll I got double data

Screen Shot 2566-03-15 at 20 18 55 Screen Shot 2566-03-15 at 20 20 57 Screen Shot 2566-03-15 at 20 22 26

If we have message for see aliases relate index use like this

Screen Shot 2566-03-15 at 20 37 00

Anyway option to ignore aliases will solve this definitely.