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

Optimize SpanNearQuery

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.3, 6.0
    • None
    • None
    • New

    Description

      After the big spans overhaul in LUCENE-6308, we can speed up SpanNearQuery a little more:

      • SpanNearQuery defaults to collectPayloads=true, but this requires a slower implementation, for an uncommon case. Use the faster no-payloads impl if the field doesn't actually have any payloads.
      • Use a simple array of Spans rather than List in NearSpans classes. This is iterated over often in the logic.

      Attachments

        1. LUCENE-6388.patch
          7 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: