[
https://issues.apache.org/jira/browse/LUCENE-5421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13910129#comment-13910129
]
Dawid Weiss commented on LUCENE-5421:
-------------------------------------
Good hint, thanks Grzegorz.
> MorfologicFilter doesn't stem legitimate uppercase terms (surnames, proper
> nouns, etc.)
> ---------------------------------------------------------------------------------------
>
> Key: LUCENE-5421
> URL: https://issues.apache.org/jira/browse/LUCENE-5421
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/analysis
> Affects Versions: 4.6.1
> Reporter: Grzegorz Sobczyk
> Assignee: Dawid Weiss
> Priority: Minor
>
> Morfologic filter search stems in input or lowercase format:
> org.apache.lucene.analysis.morfologik.MorfologikFilter.incrementToken()
> {code}
> if (!keywordAttr.isKeyword() && (lookupSurfaceForm(termAtt) ||
> lookupSurfaceForm(toLowercase(termAtt)))) {
> [...]
> }
> {code}
> In this situation, if input token is *sienkiewicza* - it isn't stemmed
> but: *Sienkiewicza* --> *Sienkiewicz*
> for comparison:
> *pRoDuKtY* --> *produkt*
> It should stem also input token with capitalized first letter
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]