Custom highlighter

Hi,

for our project we develop a solution which is able to identify which
sub-query of user's query contributed to the hit. For that we have custom
facet and query parser plugins in ES, which work like a charm. The final
step is to highlight contribution of sub-queries in the returned fields
(using custom highlighter), but this is where we are stuck: looks like ES
doesn't provide any access for plugins into "highlighting" functionality.
It seems that ES internally has a very flexible notion of "search phases"

  • and highlighting is a sub-phase of the "FetchPhase" - but phases are
    also locked (I was thinking about adding a custom "phase").

Is custom REST endpoint (enriching response before it's sent back to the
user) or modifying/compiling ES code are the only ways to implement custom
highlighting?
Are there any plans to open up highlighting for extensions?

WBR, Pavel

--

I had also asked for such a plugin point.

@Shay , kindly consider this feature.
There are numerous instance of usage for such a plugin point.

Thanks
Vineeth

On Sun, Nov 25, 2012 at 1:53 AM, Pavel Goncharik
pavel.goncharik@gmail.comwrote:

Hi,

for our project we develop a solution which is able to identify which
sub-query of user's query contributed to the hit. For that we have custom
facet and query parser plugins in ES, which work like a charm. The final
step is to highlight contribution of sub-queries in the returned fields
(using custom highlighter), but this is where we are stuck: looks like ES
doesn't provide any access for plugins into "highlighting" functionality.
It seems that ES internally has a very flexible notion of "search phases"

  • and highlighting is a sub-phase of the "FetchPhase" - but phases are
    also locked (I was thinking about adding a custom "phase").

Is custom REST endpoint (enriching response before it's sent back to the
user) or modifying/compiling ES code are the only ways to implement custom
highlighting?
Are there any plans to open up highlighting for extensions?

WBR, Pavel

--

--