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

NGramFilter use wrong argument name for preserve option

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 7.4, 8.0
    • 9.0, 8.6
    • modules/analysis
    • None
    • New

    Description

      LUCENE-7960 added the possibility to preserve the original term when using NGram filters. The documentation says to enable it with 'preserveOriginal' and it works for EdgeNGram filter. But NGram filter requires the initial planned option 'keepShortTerms' to enable this feature.

      This inconsistency is confusing. I'll provide a patch with a possible fix.

      Attachments

        1. LUCENE-9259.patch
          6 kB
          Paul Pazderski
        2. LUCENE-9259-master.patch
          2 kB
          Tomoko Uchida

        Activity

          People

            tomoko Tomoko Uchida
            Paul Pazderski Paul Pazderski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: