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

NGramFilter use wrong argument name for preserve option

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.4, 8.0
    • Fix Version/s: master (9.0), 8.6
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: