Assume I have two sets of data to be stored. The data field of these two
sets are completely different.
I am wondering what's the better option between using one index to store
the two set of data and using two index to store these two data?
If I use only one index, it will result in many fields exist in the mapping
but not really exist in the document. So when to query, does it make
performance worse? Or what's the difference?
If your data sets don't have common fields, I would recommend to use
several indices. This will be more make both query execution and postings
list compression more efficient.
Assume I have two sets of data to be stored. The data field of these two
sets are completely different.
I am wondering what's the better option between using one index to store
the two set of data and using two index to store these two data?
If I use only one index, it will result in many fields exist in the
mapping but not really exist in the document. So when to query, does it
make performance worse? Or what's the difference?
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.