Multi-search would indeed allow for not highlighting twitter messages, but
the result sets will be disjoint. Multi-search is just a convenient way to
run several search requests in a single HTTP request.
On Friday, 20 September 2013 19:03:56 UTC+5:30, bin wrote:
Say I have two indices:
facebook > post > user , message
twitter > post > user , message
Now I search across these two indices. How can I highlight words from
twitter>post>message alone and not facebook>post>message
This is not a common requirement. I guess the only way to do so would be to
have different field names for the messages on your facebook and twitter
indices. But this would also make your query more complicated...
Thanks Adrien for your help. Our app has ~10 entities. I thought of adding
each entity as an index with its sub-entities as its types rather than app
as an index. And further using organization_id as a routing value across
all indices. Since some entities are having common fields like name,
date,.., I needed more control over the highlighting fields. That is the
reason I asked for this question. Thanks once again.
On Monday, 23 September 2013 20:58:19 UTC+5:30, Adrien Grand wrote:
Multi-search would indeed allow for not highlighting twitter messages, but
the result sets will be disjoint. Multi-search is just a convenient way to
run several search requests in a single HTTP request.
On Friday, 20 September 2013 19:03:56 UTC+5:30, bin wrote:
Say I have two indices:
facebook > post > user , message
twitter > post > user , message
Now I search across these two indices. How can I highlight words from
twitter>post>message alone and not facebook>post>message
This is not a common requirement. I guess the only way to do so would be
to have different field names for the messages on your facebook and twitter
indices. But this would also make your query more complicated...
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.