lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wei Wang <welshw...@gmail.com>
Subject Re: IntField question
Date Wed, 10 Apr 2013 15:22:24 GMT
Thanks for the clarification. Very helpful.

On Wed, Apr 10, 2013 at 8:19 AM, Adrien Grand <jpountz@gmail.com> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message