If you have an index A and index B and you want to have new index C with
would contain content from both indices A and B (and then you eventually
want to drop indices A and B) then such merging is not supported by ES out
of the box. But you can write a simple script to do it manually on your
side (pull all data from index A and index into C, pull all data from index
B and index into C, done).
Lukas is of course right, the easiest solution is to search over both
indices. Alternativly you can pull documents out of both indices and throw
them in a new one. But be careful with this solution: it does not work when
you exclude source fields, as these can not be retrieved again.
Am Mittwoch, 15. August 2012 12:56:01 UTC+2 schrieb Lukáš Vlček:
Hi,
what exactly do you mean by merging indices?
If you have an index A and index B and you want to have new index C with
would contain content from both indices A and B (and then you eventually
want to drop indices A and B) then such merging is not supported by ES out
of the box. But you can write a simple script to do it manually on your
side (pull all data from index A and index into C, pull all data from index
B and index into C, done).
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.