mirror of https://github.com/apache/lucene.git
SOLR-9628: Set lastDocId in Trie fields
This commit is contained in:
parent
c219525b1d
commit
19c7f8eacf
|
@ -82,6 +82,7 @@ public class TrieDoubleField extends TrieField implements DoubleValueFieldType {
|
||||||
throw new IllegalArgumentException("docs out of order: lastDocID=" + lastDocID + " docID=" + docID);
|
throw new IllegalArgumentException("docs out of order: lastDocID=" + lastDocID + " docID=" + docID);
|
||||||
}
|
}
|
||||||
if (docID > view.docID()) {
|
if (docID > view.docID()) {
|
||||||
|
lastDocID = docID;
|
||||||
return docID == view.advance(docID);
|
return docID == view.advance(docID);
|
||||||
} else {
|
} else {
|
||||||
return docID == view.docID();
|
return docID == view.docID();
|
||||||
|
|
|
@ -80,6 +80,7 @@ public class TrieIntField extends TrieField implements IntValueFieldType {
|
||||||
throw new IllegalArgumentException("docs out of order: lastDocID=" + lastDocID + " docID=" + docID);
|
throw new IllegalArgumentException("docs out of order: lastDocID=" + lastDocID + " docID=" + docID);
|
||||||
}
|
}
|
||||||
if (docID > view.docID()) {
|
if (docID > view.docID()) {
|
||||||
|
lastDocID = docID;
|
||||||
return docID == view.advance(docID);
|
return docID == view.advance(docID);
|
||||||
} else {
|
} else {
|
||||||
return docID == view.docID();
|
return docID == view.docID();
|
||||||
|
|
|
@ -80,6 +80,7 @@ public class TrieLongField extends TrieField implements LongValueFieldType {
|
||||||
throw new IllegalArgumentException("docs out of order: lastDocID=" + lastDocID + " docID=" + docID);
|
throw new IllegalArgumentException("docs out of order: lastDocID=" + lastDocID + " docID=" + docID);
|
||||||
}
|
}
|
||||||
if (docID > view.docID()) {
|
if (docID > view.docID()) {
|
||||||
|
lastDocID = docID;
|
||||||
return docID == view.advance(docID);
|
return docID == view.advance(docID);
|
||||||
} else {
|
} else {
|
||||||
return docID == view.docID();
|
return docID == view.docID();
|
||||||
|
|
Loading…
Reference in New Issue