LUCENE-6271: change this nocommit to a TODO, actually we should test more possibilities since the codec might specialize

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene6271@1670414 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-03-31 18:14:39 +00:00
parent 6cf7a55131
commit 44aaddff2c
1 changed files with 2 additions and 1 deletions

View File

@ -1620,13 +1620,13 @@ public abstract class BasePostingsFormatTestCase extends BaseIndexFileFormatTest
PostingsEnum docs = null;
while(termsEnum.next() != null) {
BytesRef term = termsEnum.term();
// TODO: also sometimes ask for payloads/offsets?
boolean noPositions = random().nextBoolean();
if (noPositions) {
docs = termsEnum.postings(null, docs, PostingsEnum.FREQS);
} else {
docs = termsEnum.postings(null, null, PostingsEnum.POSITIONS);
}
// nocommit: can we remove the noPositions and always ask for positions here?
int docFreq = 0;
long totalTermFreq = 0;
while (docs.nextDoc() != PostingsEnum.NO_MORE_DOCS) {
@ -1669,6 +1669,7 @@ public abstract class BasePostingsFormatTestCase extends BaseIndexFileFormatTest
// Also test seeking the TermsEnum:
for(String term : termFreqs.keySet()) {
if (termsEnum.seekExact(new BytesRef(term))) {
// TODO: also sometimes ask for payloads/offsets?
boolean noPositions = random().nextBoolean();
if (noPositions) {
docs = termsEnum.postings(null, docs, PostingsEnum.FREQS);