On Sun, 2006-05-07 at 12:00 +0200, karl wettin wrote:
>
> doc.add(new Field("foo", "bar", Store.NO, Index.TOKENIZED,
> TermVector.YES));
> doc.add(new Field("foo", "bar", Store.NO, Index.TOKENIZED,
> TermVector.NO));
>
> Vector frequency of [foo, bar] is 2. I would expect it to be 1 or a
> field setting inconsistency warning.
>
> Perhaps this is true also with Store and Index? I'll have to take a
> look at that.
"Once setting, always setting" goes for Index too.
If someone can tell me what settings are global and what settings are
not global I'll patch and depricatate:
[Document]<#>-- {0..*} ->[FieldValue]--->[Field +index +vector]
What is per value and what is per field?
private boolean storeTermVector = false;
private boolean storeOffsetWithTermVector = false;
private boolean storePositionWithTermVector = false;
private boolean omitNorms = false;
private boolean isStored = false;
private boolean isIndexed = true;
private boolean isTokenized = true;
private boolean isBinary = false;
private boolean isCompressed = false;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]