A flush exception in lucene 4.10.0

2017-03-02 Thread Yonghui Zhao
Hi all, Anyone see this exception before? Is it a lucene bug or something wrong in my code? Exception in thread "Thread-14" java.lang.IllegalArgumentException: maxValue must be non-negative (got: -1) at org.apache.lucene.util.packed.PackedInts.bitsRequired(PackedInts.java:1141)

RE: Lucene 6: Recommended way to store numeric values, given the need to form term vocabulary?

2017-03-02 Thread Maros Urbanec
Thanks for the feedback. PointValues.intersect() seems to go through all the documents in my corpus. Are LongPoints and NumericDocFields stored such that there is no way to get distinct values, other than scanning through every single document? It'd be completely fine with me, just that it is n