lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Grand <jpou...@gmail.com>
Subject Re: IntField question
Date Wed, 10 Apr 2013 15:19:09 GMT
Hi,

On Wed, Apr 10, 2013 at 4:59 PM, Wei Wang <welshwang@gmail.com> wrote:
> Okay. Since there is no ByteField, setByteValue will never by used. It
> seems like a dead function.

Right, Lucene doesn't have byte or short fields.

> That makes sense. If we don't need positional info (virtually all terms are
> at the same position), can we control this for IntField or any other Field?

You can configure a FieldType so that its postings lists only contain
matching documents without any positional information[1]. This is the
case by default on numeric fields (in particular IntField).

[1] https://lucene.apache.org/core/4_2_0/core/org/apache/lucene/index/FieldInfo.IndexOptions.html#DOCS_ONLY

-- 
Adrien

---------------------------------------------------------------------
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