You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Cam Bazz <ca...@gmail.com> on 2016/09/04 01:21:13 UTC
indexing array fields
Hello,
I need to index arrays of long, usually of long[20], 20 in length.
Its been a while since I worked with lucene, last time was probably <
version 3.
I read
https://lucene.apache.org/core/6_2_0/core/org/apache/lucene/document/Field.html
There are SortedDocValuesField and SortedSetDocValuesField classes, which
to accept a byte array. I could attempt chop the long fields into a byte
array, and index that.
Also what is the difference between NumericDocValuesField, and
SortedNumericDocValuesField?
Best regards,
-cam