Just index ints as longs; the codec under the hood should be efficient
about storing the bytes (ie, not use more than 4 bytes per doc).
For float/double, use Float.floatToRawIntBits / Double.doubleToRawLongBits.
Mike McCandless
http://blog.mikemccandless.com
On Wed, Mar 5, 2014 at 7:47 AM, Yon
Yes it works.
I can use AtomicReader.getDocsWithField and NumericDocValues to implement
my requirement for long by doing a sort.
But how to deal with other numeric type(int, float, double)?
2014-03-05 20:19 GMT+08:00 Michael McCandless :
> Just use AtomicReader.getDocsWithField to know whethe
Just use AtomicReader.getDocsWithField to know whether the doc had that field?
Mike McCandless
http://blog.mikemccandless.com
On Wed, Mar 5, 2014 at 7:00 AM, Yonghui Zhao wrote:
> Hi,
>
> Is there any data type in lucene can support functions like SortedDocValues
> for any numeric(int, long, f
Hi,
Is there any data type in lucene can support functions like SortedDocValues
for any numeric(int, long, float, double) type.
SortedDocValues only supports bytes, I want some data type can get numeric
value and ord(-1 for doc doesn't have the field) for each doc.
NumericDocValues only supports