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

Move SpanQueries out of .spans package

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 5.4, 6.0
    • None
    • None
    • None
    • New

    Description

      SpanQueries are now essentially the same as a standard query, restricted to a single field and with an extra scorer type returned by getSpans(). There are a number of existing queries that fit this contract, including TermQuery and PhraseQuery, and it should be possible to make them SpanQueries as well without impacting their existing performance. However, we can't do this while SpanQuery and its associated Weight and Spans classes are in their own package.

      I'd like to remove the o.a.l.search.spans package entirely, in a few stages:
      1) Move SpanQuery, SpanWeight, Spans, SpanCollector and FilterSpans to o.a.l.search
      2) Remove SpanTermQuery and merge its functionality into TermQuery
      3) Move SpanNear, SpanNot, SpanOr and SpanMultiTermQueryWrapper to o.a.l.search
      4) Move the remaining SpanQueries to the queries package

      Then we can look at, eg, making PhraseQuery a SpanQuery, removing SpanMTQWrapper and making MultiTermQuery a SpanQuery, etc.

      Attachments

        1. LUCENE-6871.patch
          125 kB
          Alan Woodward
        2. LUCENE-6871.patch
          626 kB
          Alan Woodward

        Activity

          People

            Unassigned Unassigned
            romseygeek Alan Woodward
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: