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

NGramFilter use wrong argument name for preserve option

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.4, 8.0
    • Fix Version/s: main (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

          Activity

            People

            • Assignee:
              tomoko Tomoko Uchida
              Reporter:
              Paul Pazderski Paul Pazderski

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment