lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rupert Westenthaler (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-5203) WordDelimiterFilter stemEnglishPossessive option does not work for Tokens ending with a digit
Date Tue, 10 Sep 2013 13:49:52 GMT
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message