Highlight issue with elision analyzer: prefix before apostrophe is highlighted instead of the query #52264
Labels
>bug
:Search Relevance/Highlighting
How a query matched a document
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Description of the problem including expected versus actual behavior:
When indexing documents with the (french) elision analyzer,
If the document contains:
l’avocat
And the query is :
avocat
The highlight returns
<em>l’</em>
instead of<em>avocat<em>
More generally the problem happens:
When indexing documents with the elision analyzer,
If the document contains:
'
)and if the query to highlight is this term (avocat)
then the article is highlighted instead of the term
Steps to reproduce the bug:
Responses to the queries:
1: The very small document coitaining only
l’avocat
Elasticsearch version (
bin/elasticsearch --version
):Version: 7.6.0, Build: default/deb/7f634e9f44834fbc12724506cc1da681b0c3b1e3/2020-02-06T00:09:00.449973Z, JVM: 13.0.2
Plugins installed: []
JVM version (
java -version
):openjdk 13.0.2 2020-01-14
OpenJDK Runtime Environment AdoptOpenJDK (build 13.0.2+8)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13.0.2+8, mixed mode, sharing)
OS version (
uname -a
if on a Unix-like system):Linux user-desktop 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: