[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to