Thanks for the clarification. Very helpful.

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

> Hi,
>
> On Wed, Apr 10, 2013 at 4:59 PM, Wei Wang <welshw...@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-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

Reply via email to