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

ShingleFilter skips over trie-shingles if outputUnigram is set to false

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9, 2.9.1, 3.0
    • Fix Version/s: 2.9.2, 3.0.1, 4.0-ALPHA
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      Spinoff from http://lucene.markmail.org/message/uq4xdjk26yduvnpa

      I noticed that if I set outputUnigrams to false it gives me the same output for
      maxShingleSize=2 and maxShingleSize=3.

      please divide divide this this sentence

      when i set maxShingleSize to 4 output is:

      please divide please divide this sentence divide this this sentence

      I was expecting the output as follows with maxShingleSize=3 and
      outputUnigrams=false :

      please divide this divide this sentence

        Attachments

        1. LUCENE-2199.patch
          6 kB
          Simon Willnauer
        2. LUCENE-2199.patch
          6 kB
          Simon Willnauer

          Activity

            People

            • Assignee:
              rcmuir Robert Muir
              Reporter:
              simonw Simon Willnauer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: