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

Trivial fixes to WeightedSpanTermExtractor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.7
    • 5.4
    • modules/highlighter
    • None
    • New, Patch Available

    Description

      The conversion of PhraseQuery to SpanNearQuery miscalculates the slop if there are stop words in some cases. The issue only really appears if there is more than one intervening run of stop words: ab the cd the the ef.

      I also noticed that the inOrder determination is based on the newly calculated slop, and it should probably be based on the original phraseQuery.getSlop()

      patch and unit tests on way

      Attachments

        1. LUCENE-5503.patch
          8 kB
          David Smiley
        2. LUCENE-5503.patch
          6 kB
          Tim Allison
        3. LUCENE-5503v2.patch
          7 kB
          Tim Allison

        Activity

          People

            dsmiley David Smiley
            tallison Tim Allison
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: