elasticsearch4idea icon indicating copy to clipboard operation
elasticsearch4idea copied to clipboard

About copy Index and aliases

Open saylom99 opened this issue 2 years ago • 2 comments

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

saylom99 avatar Mar 15 '23 05:03 saylom99

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.

AntonShuvaev avatar Mar 15 '23 06:03 AntonShuvaev

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.

saylom99 avatar Mar 15 '23 13:03 saylom99