lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Vasilev <ivasi...@sirma.bg>
Subject Re: IntField vs (IntDocValuesField + StoredField)
Date Wed, 31 Oct 2012 14:14:09 GMT
Thanks Mike.

On 31.10.2012 г. 15:52, Michael McCandless wrote:
> The big advantage of IntField is you can do NumericRangeQuery/Filter
> on the field.
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
> On Wed, Oct 31, 2012 at 9:42 AM, Ivan Vasilev <ivasilev@sirma.bg> wrote:
>> Hy Guys,
>>
>> Is there some advantage in speed or index size to use this:
>>
>> IntDocValuesField fld = new IntDocValuesField("fldName", 1);
>> StoredField fld = new StoredField("fldName", 1);
>>
>> instead of this:
>>
>> IntField fld = new IntField("fld", 1, Field.Store.YES);
>>
>> Searching, sorting and retrieving data from just one object (IntField) is
>> easier than dealing with two objects (IntDocValuesField and StoredFiel) for
>> the same field.
>> So as Lucene includes the also latter alternative, there might be some
>> advantages using it?
>>
>> Cheers,
>> Ivan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message