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

HyphenationDecompoundTokenFilter does not set position/offset attributes correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.6.1, 7.2.1
    • Fix Version/s: None
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      HyphenationDecompoundTokenFilter and DictionaryDecompoundTokenFilter set positionIncrement to 0 for all subwords, reuse start/endoffset of the original token and ignore positionLength completly.

      In consequence, the QueryBuilder generates a SynonymQuery comprising all subwords, which should rather treated as individual terms.

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              systect Holger Bruch
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: