From ae59294e1246509bc04f323b19d64a792b1dfa49 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 8 Jan 2013 02:58:30 +0000 Subject: [PATCH] fix silly bug git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1430122 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene/codecs/lucene41/Lucene41SimpleDocValuesFormat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41SimpleDocValuesFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41SimpleDocValuesFormat.java index 08afbf19a47..df937209874 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41SimpleDocValuesFormat.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41SimpleDocValuesFormat.java @@ -374,12 +374,12 @@ public class Lucene41SimpleDocValuesFormat extends SimpleDocValuesFormat { @Override public int getValueCount() { - return ordinals.size(); + return binary.size(); } @Override public int size() { - return binary.size(); + return ordinals.size(); } }; }