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

Cached filter for a single term field

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.9
    • None
    • None
    • New, Patch Available

    Description

      These classes implement inexpensive range filtering over a field containing a single term. They do this by building an integer array of term numbers (storing the term->number mapping in a TreeMap) and then implementing a fast integer comparison based DocSetIdIterator.

      This code is currently being used to do age range filtering, but could also be used to do other date filtering or in any application where there need to be multiple filters based on the same single term field. I have an untested implementation of single term filtering and have considered but not yet implemented term set filtering (useful for location based searches) as well.

      The code here is fairly rough; it works but lacks javadocs and toString() and hashCode() methods etc. I'm posting it here to discover if there is other interest in this feature; I don't mind fixing it up but would hate to go to the effort if it's not going to make it into Lucene.

      Attachments

        1. TestFieldCacheRangeFilter.patch
          17 kB
          Tim Sturge
        2. TermMultiFilter.java
          2 kB
          Tim Sturge
        3. RangeMultiFilter.java
          2 kB
          Tim Sturge
        4. RangeMultiFilter.java
          3 kB
          Tim Sturge
        5. PerfTest.java
          4 kB
          Uwe Schindler
        6. LUCENE-1461c.patch
          18 kB
          Tim Sturge
        7. LUCENE-1461b.patch
          25 kB
          Tim Sturge
        8. LUCENE-1461a.patch
          4 kB
          Paul Elschot
        9. LUCENE-1461.patch
          26 kB
          Michael McCandless
        10. LUCENE-1461.patch
          21 kB
          Uwe Schindler
        11. LUCENE-1461.patch
          37 kB
          Uwe Schindler
        12. LUCENE-1461.patch
          38 kB
          Uwe Schindler
        13. LUCENE-1461.patch
          52 kB
          Uwe Schindler
        14. LUCENE-1461.patch
          56 kB
          Uwe Schindler
        15. LUCENE-1461.patch
          57 kB
          Uwe Schindler
        16. LUCENE-1461.patch
          57 kB
          Uwe Schindler
        17. FieldCacheRangeFilter.patch
          1 kB
          Tim Sturge
        18. DisjointMultiFilter.java
          3 kB
          Tim Sturge

        Issue Links

          Activity

            People

              uschindler Uwe Schindler
              tsturge Tim Sturge
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: