We have got multiple indexes in elasticsearch and would like to search the
data across all indexes but we want to apply different filters on different
indexes. e.g.
few indexes depends on client Id, hence client Id filter is required
we have IS_DELETED flag in few indexes, hence IS_DELETED filter is
required
What is the way to approach this in elasticsearch.
Also, we are using highlight feature of elasticsearch, which is supposed to
give suggestions to the users but would like to ignore certain fields in
the highlighted results. Is it possible to exclude certain fields at global
level.
About highlighting, if you mean can you selectively highlight on specific
fields, yes you can supply a list of fields that ES will perform the
highlighting on. More details here:
Thanks for the prompt response. Aliases will surely help me in resolving
filter issue across indexes but I didn't get how would I exclude certain
fields globally from highlightling. Our requirement is to highlight all the
fields except few fields.
On Thursday, 13 February 2014 19:49:10 UTC+5:30, Binh Ly wrote:
It is possible to define multiple aliases (each with a different filter
condition) and then search across aliases. Might help in your case.
About highlighting, if you mean can you selectively highlight on specific
fields, yes you can supply a list of fields that ES will perform the
highlighting on. More details here:
I see, I didn't understand your original question. Unfortunately, you
cannot say something like highlight all fields except field A, B, C. You
can only list the fields you want highlighting on, and in addition you can
use wildcards when specifying field names like for example:
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.