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

Improve SpanPayloadCheckQuery API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • New

    Description

      SpanPayloadCheckQuery currently takes a Collection<byte[]> to check its payloads against. This is suboptimal a) because payloads internally use BytesRef rather than byte[] and b) Collection is unordered, but the implementation does actually care about the order in which the payloads appear.

      We should change the constructor to take a List<BytesRef> instead.

      Attachments

        1. LUCENE-6716.patch
          23 kB
          Alan Woodward

        Activity

          People

            romseygeek Alan Woodward
            romseygeek Alan Woodward
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: