The boost is multiplied by {@link Document#GetBoost()} of the document /// containing this field. If a document has multiple fields with the same /// name, all such values are multiplied together. This product is then /// multipled by the value {@link Similarity#LengthNorm(String,int)}, and /// rounded by {@link Similarity#EncodeNorm(float)} before it is stored in the /// index. One should attempt to ensure that this product does not overflow /// the range of that encoding. /// ///
The default value is 1.0. /// ///
Note: this value is not stored directly with the document in the index. /// Documents returned from {@link IndexReader#Document(int)} and /// {@link Hits#Doc(int)} may thus not have the same value present as when /// this field was indexed. /// ///
value
should be stored in the index
///
/// Whether the field should be indexed, and if so, if it should
/// be tokenized before indexing
///
/// null
value
should be stored in the index
///
/// Whether the field should be indexed, and if so, if it should
/// be tokenized before indexing
///
/// Whether term vector should be stored
///
/// null
TermVector.YES
null
null
storeTermVector
,
/// which is set to false
.
///
/// value
should be stored (compressed or not.)
///
public Field(System.String name, byte[] value_Renamed, Store store)
{
if (name == null)
throw new System.ArgumentException("name cannot be null");
if (value_Renamed == null)
throw new System.ArgumentException("value cannot be null");
this.name = String.Intern(name);
this.fieldsData = value_Renamed;
if (store == Store.YES)
{
this.isStored = true;
this.isCompressed = false;
}
else if (store == Store.COMPRESS)
{
this.isStored = true;
this.isCompressed = true;
}
else if (store == Store.NO)
throw new System.ArgumentException("binary values can't be unstored");
else
{
throw new System.ArgumentException("unknown store parameter " + store);
}
this.isIndexed = false;
this.isTokenized = false;
this.isBinary = true;
SetStoreTermVector(TermVector.NO);
}
/// stored
attribute instead.
///
///