mirror of https://github.com/apache/lucene.git
LUCENE-7963: Remove useless getAttribute() in DefaultIndexingChain that causes performance drop, introduced by LUCENE-7626
This commit is contained in:
parent
5fee937242
commit
a5402f6863
|
@ -200,6 +200,10 @@ Bug Fixes
|
||||||
* LUCENE-7956: Fixed potential stack overflow error in ICUNormalizer2CharFilter.
|
* LUCENE-7956: Fixed potential stack overflow error in ICUNormalizer2CharFilter.
|
||||||
(Adrien Grand)
|
(Adrien Grand)
|
||||||
|
|
||||||
|
* LUCENE-7963: Remove useless getAttribute() in DefaultIndexingChain that
|
||||||
|
causes performance drop, introduced by LUCENE-7626. (Daniel Mitterdorfer
|
||||||
|
via Uwe Schindler)
|
||||||
|
|
||||||
Improvements
|
Improvements
|
||||||
|
|
||||||
* LUCENE-7489: Better storage of sparse doc-values fields with the default
|
* LUCENE-7489: Better storage of sparse doc-values fields with the default
|
||||||
|
|
|
@ -27,7 +27,6 @@ import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.TokenStream;
|
import org.apache.lucene.analysis.TokenStream;
|
||||||
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
|
|
||||||
import org.apache.lucene.codecs.DocValuesConsumer;
|
import org.apache.lucene.codecs.DocValuesConsumer;
|
||||||
import org.apache.lucene.codecs.DocValuesFormat;
|
import org.apache.lucene.codecs.DocValuesFormat;
|
||||||
import org.apache.lucene.codecs.NormsConsumer;
|
import org.apache.lucene.codecs.NormsConsumer;
|
||||||
|
@ -733,7 +732,6 @@ final class DefaultIndexingChain extends DocConsumer {
|
||||||
stream.reset();
|
stream.reset();
|
||||||
invertState.setAttributeSource(stream);
|
invertState.setAttributeSource(stream);
|
||||||
termsHashPerField.start(field, first);
|
termsHashPerField.start(field, first);
|
||||||
CharTermAttribute termAtt = tokenStream.getAttribute(CharTermAttribute.class);
|
|
||||||
|
|
||||||
while (stream.incrementToken()) {
|
while (stream.incrementToken()) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue