WARNING: Version 1.5 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Field Highlight Order
editField Highlight Order
editElasticsearch highlights the fields in the order that they are sent. Per the
json spec objects are unordered but if you need to be explicit about the order
that fields are highlighted then you can use an array for fields
like this:
"highlight": { "fields": [ {"title":{ /*params*/ }}, {"text":{ /*params*/ }} ] }
None of the highlighters built into Elasticsearch care about the order that the fields are highlighted but a plugin may.