You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2016/10/24 13:36:59 UTC

[jira] [Resolved] (LUCENE-7520) WeightedSpanTermExtractor should not rewrite MultiTermQuery all the time

     [ https://issues.apache.org/jira/browse/LUCENE-7520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley resolved LUCENE-7520.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 6.3

Thanks Dat!

I tweaked the early-return logic to happen a bit earlier to avoid the needless invocation of getLeafReader() which can be rather expensive (sometimes needing to index the content).

I put the CHANGES.txt entry into "Improvements" because it's debatable if this is a bug fix or an optimization. 

> WeightedSpanTermExtractor should not rewrite MultiTermQuery all the time
> ------------------------------------------------------------------------
>
>                 Key: LUCENE-7520
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7520
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Cao Manh Dat
>            Assignee: David Smiley
>             Fix For: 6.3
>
>         Attachments: LUCENE-7520.patch
>
>
> Currently WeightedSpanTermExtractor will rewrite MultiTermQuery regardless of the field being requested for highlighting. In some case like SOLR-2216, It can be costly and cause TooManyClauses exception for no reason.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org