lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristian Lorenzetto <cristian.lorenze...@gmail.com>
Subject Re: encoding in byteref?
Date Wed, 10 Aug 2016 09:41:49 GMT
in addition in the previous version of my code i used
TYPE.setNumericPrecisionStep for setting the precision of a number in
docvalues. Now i saw it is deprecated.
       So i have a similar question also in this case: it is still possible
to use less space for (byte,boolean,short,int) types?


2016-08-10 11:35 GMT+02:00 Cristian Lorenzetto <
cristian.lorenzetto@gmail.com>:

> ok thanks so i can do them.
> but for boolean type?  i could compress using bit. Is there pack function
> for boolean arrays?
>
> 2016-08-10 11:25 GMT+02:00 Michael McCandless <lucene@mikemccandless.com>:
>
>> It's partially right!
>>
>> E.g. IndexWriter will use less memory, and so you'll get better indexing
>> throughput with a ShortPoint and BytePoint.
>>
>> But index size will be the same, because Lucene's default codec does a
>> good
>> job compressing these values.
>>
>> Mike McCandless
>>
>> http://blog.mikemccandless.com
>>
>> On Wed, Aug 10, 2016 at 5:19 AM, Cristian Lorenzetto <
>> cristian.lorenzetto@gmail.com> wrote:
>>
>> > sorry but I was developping a shortPoint and BytePoint for less using
>> less
>> > memory space. it is wrong?
>> >
>> > 2016-08-09 22:01 GMT+02:00 Michael McCandless <
>> lucene@mikemccandless.com>:
>> >
>> > > It's best to index numeric using the new dimensional points, e.g.
>> > IntPoint.
>> > >
>> > > Mike McCandless
>> > >
>> > > http://blog.mikemccandless.com
>> > >
>> > > On Tue, Aug 9, 2016 at 10:12 AM, Cristian Lorenzetto <
>> > > cristian.lorenzetto@gmail.com> wrote:
>> > >
>> > > > how to encode a short or a byte type in byteRef in lucene 6.1?
>> > > >
>> > >
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message