On Jun 24, 2005, at 2:46 PM, Yousef Ourabi wrote:
> I have a quick question on the Field class. What is the difference
> between this:
>
> for ()
> Field content = new Field("content", contentArray[i], true, true,
> true, true);
> doc.add(content);
>
> and this:
>
> doc.add(Field.Keyword("userAlias", userAlias ));
The boolean parameters line up to these flags, in order: boolean
store, boolean index, boolean token, boolean storeTermVector
Field.Keyword is the same as true, true, false, false
Your first call stores, indexes, tokenizes, and stores term vectors.
Your second call is a field that is stored and indexed, but neither
tokenized nor storing term vectors.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]