LUCENE-3709: only load norms if they are present in at least on Field

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1234013 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2012-01-20 17:19:41 +00:00
parent ac8befe5c3
commit 315b6ab63d
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ public final class FieldInfos implements Iterable<FieldInfo> {
public boolean hasNorms() {
for (FieldInfo fi : this) {
if (fi.isIndexed && !fi.omitNorms) {
if (fi.normsPresent()) {
return true;
}
}