Points cannot sort. They can only do range queries.
So you need to convert your 128 bit BigInts into a
sort-order-preserving byte[] (BigIntegerPoint.encodeDimension should
do this correctly), and then index that byte[] using a
SortedDocValuesField.
Mike McCandless
http://blog.mikemccandless.com
I think to sort properly you must also ensure all byte[] from those
BigIntegers are the same length, and that you sign extend them?
Mike McCandless
http://blog.mikemccandless.com
On Sun, Aug 21, 2016 at 5:50 AM, Cristian Lorenzetto
wrote:
> I took a look for bigInteger point but i didnt see no
I took a look for bigInteger point but i didnt see no reference for
sorting,
and SortedNumericDocValuesField accept long not biginteger.
I thought to sort so :
BigInteger bi = (BigInteger) o;
byte[] b = bi.toByteArray();
NumericUtils.bigIntToSortableBytes(bi, BigIntegerPoint.BYTES, b, 0);
doc.ad