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

FuzzyTermEnums sets negative boost for fuzzy search & highlight

Details

    • New

    Description

      Description
      When user indexes a word with an apostrophe and constructs a fuzzy query for highlighter, it throws an exception with set negative boost for a query. 

      Repro Steps

      1. Index a text with apostrophe. E.g. doesn't
      2. Parse a fuzzy query e.g.: se~, se~2, se~3
      3. Try to highlight a text with apostrophe
      4. The exception is thrown (for details see attached test test with repro steps)

      Actual Result
      java.lang.IllegalArgumentException: boost must be a positive float, got -1.0

      Expected Result

      • No exception.
      • Highlighting marks are inserted into a text.

      Workaround

      • not known.

      Attachments

        1. FindSqlHighlightTest.java
          3 kB
          Juraj Jurčo

        Activity

          People

            Unassigned Unassigned
            JiangHongTiao Juraj Jurčo
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: