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

Trejkaz updated LUCENE-1240:
----------------------------

    Attachment: terms-filter.patch

Attaching my attempt at improving this.

The original code didn't close all the TermDocs it created either; this is now 
fixed also.


> TermsFilter: reuse TermDocs
> ---------------------------
>
>                 Key: LUCENE-1240
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1240
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 2.3.1
>            Reporter: Trejkaz
>         Attachments: terms-filter.patch
>
>
> TermsFilter currently calls termDocs(Term) once per term in the TermsFilter.  
> If we sort the terms it's filtering on, this can be optimised to call 
> termDocs() once and then skip(Term) once per term, which should significantly 
> speed up this filter.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to