SOLR-9628: Set lastDocId in Trie fields

This commit is contained in:
Anshum Gupta 2016-10-16 19:07:40 -07:00
parent c219525b1d
commit 19c7f8eacf
3 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,7 @@ public class TrieDoubleField extends TrieField implements DoubleValueFieldType {
throw new IllegalArgumentException("docs out of order: lastDocID=" + lastDocID + " docID=" + docID);
}
if (docID > view.docID()) {
lastDocID = docID;
return docID == view.advance(docID);
} else {
return docID == view.docID();

View File

@ -80,6 +80,7 @@ public class TrieIntField extends TrieField implements IntValueFieldType {
throw new IllegalArgumentException("docs out of order: lastDocID=" + lastDocID + " docID=" + docID);
}
if (docID > view.docID()) {
lastDocID = docID;
return docID == view.advance(docID);
} else {
return docID == view.docID();

View File

@ -80,6 +80,7 @@ public class TrieLongField extends TrieField implements LongValueFieldType {
throw new IllegalArgumentException("docs out of order: lastDocID=" + lastDocID + " docID=" + docID);
}
if (docID > view.docID()) {
lastDocID = docID;
return docID == view.advance(docID);
} else {
return docID == view.docID();