no highlights with a highlight prefix query and FVH when no match found #25171
Labels
>bug
:Search Relevance/Highlighting
How a query matched a document
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Following this issue: #25088
Elasticsearch version: 5.4.0 and 5.4.1
JVM version: 1.8
OS version : Windows 7
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
The text was updated successfully, but these errors were encountered: