lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nik Everett (JIRA)" <>
Subject [jira] [Updated] (LUCENE-5274) Teach fast FastVectorHighlighter to highlight "child fields" with parent fields
Date Fri, 11 Oct 2013 18:14:42 GMT


Nik Everett updated LUCENE-5274:

    Attachment: LUCENE-5274.patch

New version of the patch.  This one works a lot better with phrases and even works on fields
that have the same source but different tokenizers.

It still makes highlighting depend on the analysis module to pick up PerFieldAnalyzerWrapper.

I think all the new code this adds to FieldPhraseList deserves a unit test on its own but
I'm not in the frame of mind to write one at the moment so I'll have to come back to it later.

> Teach fast FastVectorHighlighter to highlight "child fields" with parent fields
> -------------------------------------------------------------------------------
>                 Key: LUCENE-5274
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/other
>            Reporter: Nik Everett
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-5274.patch
> I've been messing around with the FastVectorHighlighter and it looks like I can teach
it to highlight matches on "child fields".  Like this query:
> foo:scissors foo_exact:running
> would highlight foo like this:
> <em>running</em> with <em>scissors</em>
> Where foo is stored WITH_POSITIONS_OFFSETS and foo_plain is an unstored copy of foo a
different analyzer and its own WITH_POSITIONS_OFFSETS.
> This would make queries that perform weighted matches against different analyzers much
more convenient to highlight.
> I have working code and test cases but they are hacked into Elasticsearch.  I'd love
to Lucene-ify if you'll take them.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message