Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.9, 5.0
    • Component/s: Schema and Analysis
    • Labels:
      None

      Description

      ApostropheTokenizer creates extra tokens during the analysis stage for the fields containing apostrophes. The reason for adding this is to ensure that documents that differ only by apostrophe have the same relevancy score.

      For example, if the document contains string "McDonald's", it will be tokenized as "McDonald's McDonalds". This way when the search is performed against "McDonald's" or "McDonalds" will produce similar score.

      This code handles up to two apostrophes in a token.

      To use this tokenizer add the following line in schema.xml

      <analyzer type="index">
      <filter class="org.apache.lucene.analysis.ApostropheTokenFactory"/>
      ...
      </analyzer>

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Sergey Borisov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development