[
https://issues.apache.org/jira/browse/SOLR-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hoss Man updated SOLR-1874:
---------------------------
Fix Version/s: 4.0
Correcting Fix Version based on CHANGES.txt, see this thread for more details...
http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%[email protected]%3e
> optimize patternreplacefilter
> -----------------------------
>
> Key: SOLR-1874
> URL: https://issues.apache.org/jira/browse/SOLR-1874
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.1
> Reporter: Robert Muir
> Assignee: Robert Muir
> Fix For: 3.1, 4.0
>
> Attachments: SOLR-1874.patch
>
>
> We can optimize PatternReplaceFilter:
> * don't need to create Strings since CharTermAttribute implements
> CharSequence, just match directly against it.
> * reuse the matcher, since CharTermAttribute is reused, too.
> * don't create Strings/waste time in replaceAll/replaceFirst if the term
> doesn't match the regex at all... check with find() first.
> There is more that could be done to make it faster for terms that do match,
> but this is simple and a start.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]