I have to create an index alias representing two indexes, but index the content to one of the indexes based on a value. The case is as below:
Let us assume I have indexes 20160314_16 and 20160317_20 representing a weeks data. I need to have an alias which says WeekOf20160314, which represents both the index.
Now when I put a indexing request using alias, based on the attribute contentdate, the data should be indexed into appropriate index. Is it possible?
Not sure what the requirement is but , in my scenario I am creating an index on daily basis based on content date and creating dashboard on all the indexes based on a common alias . I guess this is exactly you are looking for , if this is the case then it is possible .
We are not creating daily indexes as it will be 380+ at any given time in my cluster. We need to keep 15 months of data (hot and queriable). Thought of creating weekly indexes and split the index (by reindex as operation activity) when the size of shard goes above 50 GB....
Thanks mark. We thought of controlling using metadata, but wanted to validate if we have some template based capability. It might be a good idea to add this capability to add this feature in ES upcoming versions...viz. Define which index the new content should go to based on a condition...
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.