Hi,
I have created two index with the same alias, Index1 and Index2. Current live data goes into Index1. The reason for creating index2 is I am developing a feature and when it is released I want to remove Index1 and switch alias to Index2. So, for now I have set is_write_index to true for Index1. But, I also want to read the data for now from Index1 only as Index2 related features are under development. Can anyone please guide me on how I can achieve this?
FYI: For reading only from the index to which I am writing to, I tried one of the article from Stack overflow which mentioned to add a filter on the field that must exist in the write index, but it didn't work.
Your current alias will show everything from index2 and from index1 it will only shows the documents that have the field1.
It is not sure why you need to keep index2 in the alias if you just want to read data from index1, why not remove the alias?
it is not clear what exactly you want to approach and why you are using alias, the alias should be used when you want to query multiple indices using the same alias, you want the oposite of this.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.