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

Alan Woodward resolved LUCENE-9349.
-----------------------------------
    Fix Version/s: 8.6
       Resolution: Fixed

> Avoid parsing all terms in TermInSetQuery.visit()
> -------------------------------------------------
>
>                 Key: LUCENE-9349
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9349
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Major
>             Fix For: 8.6
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> TermInSetQuery currently iterates through all its prefix-encoded terms in 
> order to build an array to pass back to its visitor when visit() is called.  
> This seems like a waste, particularly when the visitor is not actually 
> consuming the terms (for example, when doing a clause-count check before 
> executing a search).  Instead TermInSetQuery should use 
> consumeTermsMatching(), and we should change the signature of this method so 
> that it takes a BytesRunAutomaton supplier to allow for lazy instantiation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to