Apache Lucene open-source search software
number of unique terms may not fit in int
Michael McCandless2e1eb3ee864f
diff --git a/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java b/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.javaindex 51278629003..4055d3531d2 100644--- a/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java+++ b/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java@@ -91,7 +91,7 @@ public class Builder<T> {return fst.nodeCount;}- public int getTermCount() {+ public long getTermCount() {return frontier[0].inputCount;}@@ -422,7 +422,7 @@ public class Builder<T> {Arc<T>[] arcs;T output;boolean isFinal;- int inputCount;+ long inputCount;/** This node's depth, starting from the automaton root. */final int depth;