Apache Lucene.Net 2.4.0 Class Library API

Field.Index Members

Field.Index overview

Public Static Fields

ANALYZED Index the tokens produced by running the field's value through an Analyzer. This is useful for common text.
ANALYZED_NO_NORMS Expert: Index the tokens produced by running the field's value through an Analyzer, and also separately disable the storing of norms. See {@link #NOT_ANALYZED_NO_NORMS} for what norms are and why you may want to disable them.
NODo not index the field value. This field can thus not be searched, but one can still access its contents provided it is {@link Field.Store stored}.
NO_NORMS Deprecated. This has been renamed to NOT_ANALYZED_NO_NORMS.
NOT_ANALYZEDIndex the field's value without using an Analyzer, so it can be searched. As no analyzer is used the value will be stored as a single term. This is useful for unique Ids like product numbers.
NOT_ANALYZED_NO_NORMS Expert: Index the field's value without an Analyzer, and also disable the storing of norms.. Note that you can also separately enable/disable norms by calling SetOmitNorms(bool). No norms means that index-time field and document boosting and field length normalization are disabled. The benfit is less memory ysage as norms take up one byte of RAM per indexed field for every document in the index, during searching. Note that once you index a given field with norms enabled, disabling norms will have no effect. In other words, for this to have the above described effect on a field, all instances of that field must be indexed with NOT_ANALYZED_NO_NORMS from the beginning.
TOKENIZED Deprecated. This has been renamed to ANALYZED.
UN_TOKENIZED Deprecated. This has been renamed to NOT_ANALYZED.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetRealObject (inherited from Parameter) 
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Parameter) 

Protected Internal Instance Methods

ReadResolve (inherited from Parameter) Resolves the deserialized instance to the local reference for accurate equals() and == comparisons.

See Also

Field.Index Class | Lucene.Net.Documents Namespace