mirror of https://github.com/apache/lucene.git
LUCENE-2166: don't keep warning about the same immense term
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@891189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
56b036e4e5
commit
c84752afb9
|
@ -53,6 +53,9 @@ Bug fixes
|
|||
|
||||
* LUCENE-2142: FieldCacheImpl.getStringIndex no longer throws an
|
||||
exception when term count exceeds doc count. (Mike McCandless)
|
||||
|
||||
* LUCENE-2166: Don't incorrectly keep warning about the same immense
|
||||
term, when IndexWriter.infoStream is on. (Mike McCandless)
|
||||
|
||||
New features
|
||||
|
||||
|
|
|
@ -245,8 +245,10 @@ final class DocFieldProcessorPerThread extends DocConsumerPerThread {
|
|||
for(int i=0;i<fieldCount;i++)
|
||||
fields[i].consumer.processFields(fields[i].fields, fields[i].fieldCount);
|
||||
|
||||
if (docState.maxTermPrefix != null && docState.infoStream != null)
|
||||
docState.infoStream.println("WARNING: document contains at least one immense term (longer than the max length " + DocumentsWriter.MAX_TERM_LENGTH + "), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '" + docState.maxTermPrefix + "...'");
|
||||
if (docState.maxTermPrefix != null && docState.infoStream != null) {
|
||||
docState.infoStream.println("WARNING: document contains at least one immense term (longer than the max length " + DocumentsWriter.MAX_TERM_LENGTH + "), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '" + docState.maxTermPrefix + "...'");
|
||||
docState.maxTermPrefix = null;
|
||||
}
|
||||
|
||||
final DocumentsWriter.DocWriter one = fieldsWriter.finishDocument();
|
||||
final DocumentsWriter.DocWriter two = consumer.finishDocument();
|
||||
|
|
Loading…
Reference in New Issue