You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2014/03/04 18:33:26 UTC
[jira] [Resolved] (SOLR-5622) Unnecessary method call in hunspell
stem filter
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org