Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
no highlights with a highlight prefix query and FVH when no match found #25171
Following this issue: #25088
Elasticsearch version: 5.4.0 and 5.4.1
No highlights returned using a prefix in a highlight_query when a document attribute has an empty value or no match found
Steps to reproduce:
Create the following index
Add a new document, notice description is empty (no match for 'sq' string).
Run the following query to highlight the string containing 'sq'.
The result as expected highlights the string containing 'sq'
Lets re-execute the same query, but this time we change the order of fields..
Surprisingly, no highlighs returned..
is this is a bug? same behavior in 2.x