mirror of https://github.com/apache/lucene.git
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:
parent
c82e9d47cd
commit
38c51c2f51
|
@ -86,7 +86,7 @@ public class FieldTermStack {
|
|||
}
|
||||
|
||||
final Terms vector = vectors.terms(fieldName);
|
||||
if (vector == null) {
|
||||
if (vector == null || vector.hasPositions() == false) {
|
||||
// null snippet
|
||||
return;
|
||||
}
|
||||
|
@ -104,13 +104,7 @@ public class FieldTermStack {
|
|||
if (!termSet.contains(term)) {
|
||||
continue;
|
||||
}
|
||||
// nocommit: check
|
||||
dpEnum = termsEnum.postings(null, dpEnum, PostingsEnum.POSITIONS);
|
||||
if (dpEnum == null) {
|
||||
// null snippet
|
||||
return;
|
||||
}
|
||||
|
||||
dpEnum.nextDoc();
|
||||
|
||||
// For weight look here: http://lucene.apache.org/core/3_6_0/api/core/org/apache/lucene/search/DefaultSimilarity.html
|
||||
|
|
Loading…
Reference in New Issue