[ 
https://issues.apache.org/jira/browse/LUCENE-5421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13886492#comment-13886492
 ] 

Grzegorz Sobczyk commented on LUCENE-5421:
------------------------------------------

https://github.com/apache/lucene-solr/pull/25
but see: TestMorfologikAnalyzer:128
- I didn't find the reason why assertion *aarona*->*aarona* is present there

Other thing: poznania (TestMorfologikAnalyzer:125) should return "poznanie, 
poznać, Poznań" but I don't know how to do this.
If this would be possible, then we could configure MorfologikFilter.

> 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]

Reply via email to