What is ES equivalent for Solr's hl.preserveMulti?

(Samiksha Saraf) #1

We are evaluating both Solr and Elasticsearch for a usecase. In Solr one of the parameters used in highlighting is hl.preserveMulti to preserve order of values in a multiValued data. Doing so in Solr, then it returns all of the values of the multivalued data in their original order. If this parameter is used, the values that have a hit are highlighted and the ones that do not contain a hit are returned un-highlighted.

In elasticsearch, with highlighting on, only the values which contains the highlighted snippet is returned back in _highlight and I am unable to get back rest of the values (which do not contain highlighting) from a multivalued list in _highlight

Please help me resolve this issue.


(system) #2