elasticsearch highlight lose character when index_options=offsets #60168
Labels
>bug
good first issue
low hanging fruit
:Search/Highlighting
How a query matched a document
Team:Search
Meta label for search team
Elasticsearch version (
bin/elasticsearch --version
): 7.7.1Plugins installed: []
JVM version (
java -version
): openjdk version "11.0.7" 2020-04-14 LTSOS version (
uname -a
if on a Unix-like system): GNU/LinuxDescription of the problem including expected versus actual behavior:
set properties
index_options=offsets
,doc title is
can work?shit
, serach result highlight is"<em>shit</em>"
.If the search match the last word, and the last word is preceded by a tag symbol, then the highlighting will wrong when set properties
index_options=offsets
.Steps to reproduce:
search result is blow:
hightlight type=plain
, it works.result is blow:
The text was updated successfully, but these errors were encountered: