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

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9, 2.9.1, 3.0
    • 2.9.2, 3.0.1, 4.0-ALPHA
    • modules/analysis
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: