LUCENE-6271: remove final nocommit

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene6271@1670429 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan Ernst 2015-03-31 19:02:53 +00:00
parent c82e9d47cd
commit 38c51c2f51
1 changed files with 1 additions and 7 deletions

View File

@ -86,7 +86,7 @@ public class FieldTermStack {
} }
final Terms vector = vectors.terms(fieldName); final Terms vector = vectors.terms(fieldName);
if (vector == null) { if (vector == null || vector.hasPositions() == false) {
// null snippet // null snippet
return; return;
} }
@ -104,13 +104,7 @@ public class FieldTermStack {
if (!termSet.contains(term)) { if (!termSet.contains(term)) {
continue; continue;
} }
// nocommit: check
dpEnum = termsEnum.postings(null, dpEnum, PostingsEnum.POSITIONS); dpEnum = termsEnum.postings(null, dpEnum, PostingsEnum.POSITIONS);
if (dpEnum == null) {
// null snippet
return;
}
dpEnum.nextDoc(); dpEnum.nextDoc();
// For weight look here: http://lucene.apache.org/core/3_6_0/api/core/org/apache/lucene/search/DefaultSimilarity.html // For weight look here: http://lucene.apache.org/core/3_6_0/api/core/org/apache/lucene/search/DefaultSimilarity.html