Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1240

TermsFilter: reuse TermDocs

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.1
    • 2.3.2
    • core/search
    • None
    • New, Patch Available

    Description

      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.

      Attachments

        1. terms-filter.patch
          2 kB
          Trejkaz

        Activity

          People

            Unassigned Unassigned
            trejkaz Trejkaz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: