Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13448

UAX29 URL Email Tokenizer: Ref guide description of hyphen handling is wrong

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.2
    • Fix Version/s: None
    • Component/s: documentation
    • Labels:
      None

      Description

      As reported on the Solr user mailing list by Tom Van Cuyck:

      The UAX29 URL Email Tokenizer is not working as expected.
      According to the documentation (
      https://lucene.apache.org/solr/guide/7_2/tokenizers.html): "Words are split
      at hyphens, unless there is a number in the word, in which case the token
      is not split and the numbers and hyphen(s) are preserved."

      So I expect "ABC-123" to remain "ABC-123"
      However the term is split in 2 separate tokens "ABC" and "123".

      Same for "AB12-CD34" --> "AB12" and "CD34" etc...

      Is this behavior to be expected? Or is there a way to get the behavior I
      expect?

        Attachments

          Activity

            People

            • Assignee:
              sarowe Steven Rowe
              Reporter:
              sarowe Steven Rowe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: