[ 
https://issues.apache.org/jira/browse/SOLR-5622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Muir resolved SOLR-5622.
-------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 4.4)
                   5.0
                   4.8

Thanks Bernhard, this is fixed now in current trunk/4.x!

We are now using CharsRef, so we use the CharSequence approach:
{code}
termAtt.setEmpty().append(stem);
{code}

But thanks for reporting this, and sorry it took a while!

> Unnecessary method call in hunspell stem filter
> -----------------------------------------------
>
>                 Key: SOLR-5622
>                 URL: https://issues.apache.org/jira/browse/SOLR-5622
>             Project: Solr
>          Issue Type: Improvement
>          Components: Schema and Analysis
>    Affects Versions: 4.4
>         Environment: Ubuntu 12.04
>            Reporter: Bernhard Kraft
>            Priority: Trivial
>              Labels: easyfix, performance
>             Fix For: 4.8, 5.0
>
>         Attachments: SOLR-5622.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> There is an unnecessarry call to "termAtt.setLength()" in hunspell stem 
> filter. The preceeding call to "copyBuffer" already sets the length variable.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to