We have recently encountered a problem with item highlighting when we
changed the way we define analysers.
In short, the problem boiled down to PlainHighlighter using analyser for
the document type. while we
specify analyser on per-document basis. '_analyzer' field is not used (or,
from my debugging, even visible) in the highlighter context. As a temporary
solution, I made highlighter use the field to which '_analyzer' points
to(via path) in the mappings we use,
My attempt at it is over here:
There are a couple of issues that I am seeking help with:
- Does this seem like an about - right approach to dealing with the
- Analyzer field name is hardcoded, as I was unable to figure out how to
get it from the document in the correct way (again, the right field is
pointed to in '_analyzer' via path). Any suggestions how to do it properly?
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7bbf3576-5fb1-44d1-badd-90f6b6cdf2d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.