lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <>
Subject [jira] [Updated] (LUCENE-4728) Allow CommonTermsQuery to be highlighted
Date Fri, 01 Feb 2013 14:00:12 GMT


Simon Willnauer updated LUCENE-4728:

    Attachment: LUCENE-4728.patch

here is the - solves everybodies problem - patch. I added the rewrite trick to both highlighters,
remove the field requirement in the WeightedSpanTermExtractor and hacked a reusing AtomicReader
that simply delegates to the MemoryIndex AtomicReader shadowing the field. kind of hacky but
that entire thing is hacky ey? Nice thing is that we don't need to index the tokenstream twice
if we need two different fields.
> Allow CommonTermsQuery to be highlighted
> ----------------------------------------
>                 Key: LUCENE-4728
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/highlighter
>    Affects Versions: 4.1
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>             Fix For: 4.2, 5.0
>         Attachments: LUCENE-4728.patch, LUCENE-4728.patch, LUCENE-4728.patch
> Add support for CommonTermsQuery to all highlighter impls. 
> This might add a dependency (query-jar) to the highlighter so we might think about adding
it to core?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

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

View raw message