Rupert Westenthaler created LUCENE-5203:
-------------------------------------------

             Summary: WordDelimiterFilter stemEnglishPossessive option does not 
work for Tokens ending with a digit
                 Key: LUCENE-5203
                 URL: https://issues.apache.org/jira/browse/LUCENE-5203
             Project: Lucene - Core
          Issue Type: Bug
          Components: modules/analysis
            Reporter: Rupert Westenthaler
            Priority: Minor


For Token ending with "{digit}'s" the WordDelimiterFilter ignores the 
stemEnglishPossessive configuration

e.g. in the text "SD500's poor underwater performance" the "'s" will not be 
stemmed from SD500 even if stemEnglishPossessive="1".

The reason is that "WordDelimiterIterator#endsWithPossessive(int pos)" checks 
for

    isAlpha(charType(text[pos - 3]))

while it should also allow for isDigits(int type).  





--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to