lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karl wettin <ka...@snigel.net>
Subject Re: more field advocacy
Date Mon, 08 May 2006 23:13:46 GMT
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message