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

In SpanNearQuery, add support for inOrder semantics equivalent to that of (Multi)PhraseQuery

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      As discussed in LUCENE-8531, the semantics of phrase search differs among (Multi)PhraseQuery, SpanNearQuery (inOrder=true), and SpanNearQuery (inOrder=false):

      • (Multi)PhraseQuery: incorporates the concept of order, and allows negative offsets in calculating slop/edit distance
      • SpanNearQuery (inOrder=true): incorporates the concept of order, and does not allow negative offsets in calculating slop/edit distance
      • SpanNearQuery (inOrder=false): does not incorporate the concept of order at all

      This issue concerns the possibility of adjusting SpanNearQuery to be configurable to support semantics equivalent to that of (Multi)PhraseQuery.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mgibney Michael Gibney
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: