Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Access to the Fieldable Info file that describes document fields and whether or not they are indexed. Each segment has a separate Fieldable Info file. Objects of this class are thread-safe for multiple readers, but only one thread can be adding documents at a time, with no other reader or writer threads accessing this object. More...
Inherits ICloneable.
Public Member Functions | |
FieldInfos () | |
FieldInfos (Directory d, String name) | |
Construct a FieldInfos object using the directory and the name of the file IndexInput | |
Object | Clone () |
Returns a deep clone of this FieldInfos instance. | |
void | Add (Document doc) |
Adds field info for a Document. | |
void | AddIndexed (System.Collections.Generic.ICollection< string > names, bool storeTermVectors, bool storePositionWithTermVector, bool storeOffsetWithTermVector) |
Add fields that are indexed. Whether they have termvectors has to be specified. | |
void | Add (System.Collections.Generic.ICollection< string > names, bool isIndexed) |
Assumes the fields are not storing term vectors. | |
void | Add (String name, bool isIndexed) |
Calls 5 parameter add with false for all TermVector parameters. | |
void | Add (System.String name, bool isIndexed, bool storeTermVector) |
Calls 5 parameter add with false for term vector positions and offsets. | |
void | Add (System.String name, bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector) |
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag is the same as was given previously for this field. If not - marks it as being indexed. Same goes for the TermVector parameters. | |
void | Add (System.String name, bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool omitNorms) |
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag is the same as was given previously for this field. If not - marks it as being indexed. Same goes for the TermVector parameters. | |
FieldInfo | Add (System.String name, bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool omitNorms, bool storePayloads, bool omitTermFreqAndPositions) |
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag is the same as was given previously for this field. If not - marks it as being indexed. Same goes for the TermVector parameters. | |
int | FieldNumber (System.String fieldName) |
FieldInfo | FieldInfo (System.String fieldName) |
System.String | FieldName (int fieldNumber) |
Return the fieldName identified by its number. | |
FieldInfo | FieldInfo (int fieldNumber) |
Return the fieldinfo object referenced by the fieldNumber. | |
int | Size () |
bool | HasVectors () |
void | Write (Directory d, System.String name) |
void | Write (IndexOutput output) |
Public Attributes | |
const int | FORMAT_PRE = - 1 |
const int | FORMAT_START = - 2 |
Access to the Fieldable Info file that describes document fields and whether or not they are indexed. Each segment has a separate Fieldable Info file. Objects of this class are thread-safe for multiple readers, but only one thread can be adding documents at a time, with no other reader or writer threads accessing this object.
Definition at line 36 of file FieldInfos.cs.
Lucene.Net.Index.FieldInfos.FieldInfos | ( | ) |
Definition at line 59 of file FieldInfos.cs.
Lucene.Net.Index.FieldInfos.FieldInfos | ( | Directory | d, |
String | name | ||
) |
Construct a FieldInfos object using the directory and the name of the file IndexInput
d | The directory to open the IndexInput from |
name | The name of the file to open the IndexInput from in the Directory |
<throws> IOException </throws>
Definition at line 71 of file FieldInfos.cs.
void Lucene.Net.Index.FieldInfos.Add | ( | Document | doc | ) |
Adds field info for a Document.
Definition at line 140 of file FieldInfos.cs.
void Lucene.Net.Index.FieldInfos.Add | ( | System.Collections.Generic.ICollection< string > | names, |
bool | isIndexed | ||
) |
Assumes the fields are not storing term vectors.
names | The names of the fields |
isIndexed | Whether the fields are indexed or not |
Definition at line 201 of file FieldInfos.cs.
void Lucene.Net.Index.FieldInfos.Add | ( | String | name, |
bool | isIndexed | ||
) |
Calls 5 parameter add with false for all TermVector parameters.
name | The name of the Fieldable |
isIndexed | true if the field is indexed |
Definition at line 221 of file FieldInfos.cs.
void Lucene.Net.Index.FieldInfos.Add | ( | System.String | name, |
bool | isIndexed, | ||
bool | storeTermVector | ||
) |
Calls 5 parameter add with false for term vector positions and offsets.
name | The name of the field |
isIndexed | true if the field is indexed |
storeTermVector | true if the term vector should be stored |
Definition at line 238 of file FieldInfos.cs.
void Lucene.Net.Index.FieldInfos.Add | ( | System.String | name, |
bool | isIndexed, | ||
bool | storeTermVector, | ||
bool | storePositionWithTermVector, | ||
bool | storeOffsetWithTermVector | ||
) |
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag is the same as was given previously for this field. If not - marks it as being indexed. Same goes for the TermVector parameters.
name | The name of the field |
isIndexed | true if the field is indexed |
storeTermVector | true if the term vector should be stored |
storePositionWithTermVector | true if the term vector with positions should be stored |
storeOffsetWithTermVector | true if the term vector with offsets should be stored |
Definition at line 262 of file FieldInfos.cs.
void Lucene.Net.Index.FieldInfos.Add | ( | System.String | name, |
bool | isIndexed, | ||
bool | storeTermVector, | ||
bool | storePositionWithTermVector, | ||
bool | storeOffsetWithTermVector, | ||
bool | omitNorms | ||
) |
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag is the same as was given previously for this field. If not - marks it as being indexed. Same goes for the TermVector parameters.
name | The name of the field |
isIndexed | true if the field is indexed |
storeTermVector | true if the term vector should be stored |
storePositionWithTermVector | true if the term vector with positions should be stored |
storeOffsetWithTermVector | true if the term vector with offsets should be stored |
omitNorms | true if the norms for the indexed field should be omitted |
Definition at line 289 of file FieldInfos.cs.
FieldInfo Lucene.Net.Index.FieldInfos.Add | ( | System.String | name, |
bool | isIndexed, | ||
bool | storeTermVector, | ||
bool | storePositionWithTermVector, | ||
bool | storeOffsetWithTermVector, | ||
bool | omitNorms, | ||
bool | storePayloads, | ||
bool | omitTermFreqAndPositions | ||
) |
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag is the same as was given previously for this field. If not - marks it as being indexed. Same goes for the TermVector parameters.
name | The name of the field |
isIndexed | true if the field is indexed |
storeTermVector | true if the term vector should be stored |
storePositionWithTermVector | true if the term vector with positions should be stored |
storeOffsetWithTermVector | true if the term vector with offsets should be stored |
omitNorms | true if the norms for the indexed field should be omitted |
storePayloads | true if payloads should be stored for this field |
omitTermFreqAndPositions | true if term freqs should be omitted for this field |
Definition at line 319 of file FieldInfos.cs.
void Lucene.Net.Index.FieldInfos.AddIndexed | ( | System.Collections.Generic.ICollection< string > | names, |
bool | storeTermVectors, | ||
bool | storePositionWithTermVector, | ||
bool | storeOffsetWithTermVector | ||
) |
Add fields that are indexed. Whether they have termvectors has to be specified.
names | The names of the fields |
storeTermVectors | Whether the fields store term vectors or not |
storePositionWithTermVector | true if positions should be stored. |
storeOffsetWithTermVector | true if offsets should be stored |
Definition at line 180 of file FieldInfos.cs.
Object Lucene.Net.Index.FieldInfos.Clone | ( | ) |
Returns a deep clone of this FieldInfos instance.
Definition at line 123 of file FieldInfos.cs.
FieldInfo Lucene.Net.Index.FieldInfos.FieldInfo | ( | System.String | fieldName | ) |
Definition at line 351 of file FieldInfos.cs.
FieldInfo Lucene.Net.Index.FieldInfos.FieldInfo | ( | int | fieldNumber | ) |
Return the fieldinfo object referenced by the fieldNumber.
fieldNumber |
Definition at line 376 of file FieldInfos.cs.
System.String Lucene.Net.Index.FieldInfos.FieldName | ( | int | fieldNumber | ) |
Return the fieldName identified by its number.
fieldNumber |
Definition at line 364 of file FieldInfos.cs.
int Lucene.Net.Index.FieldInfos.FieldNumber | ( | System.String | fieldName | ) |
Definition at line 345 of file FieldInfos.cs.
bool Lucene.Net.Index.FieldInfos.HasVectors | ( | ) |
Definition at line 386 of file FieldInfos.cs.
int Lucene.Net.Index.FieldInfos.Size | ( | ) |
Definition at line 381 of file FieldInfos.cs.
void Lucene.Net.Index.FieldInfos.Write | ( | Directory | d, |
System.String | name | ||
) |
Definition at line 400 of file FieldInfos.cs.
void Lucene.Net.Index.FieldInfos.Write | ( | IndexOutput | output | ) |
Definition at line 413 of file FieldInfos.cs.
const int Lucene.Net.Index.FieldInfos.FORMAT_PRE = - 1 |
Definition at line 40 of file FieldInfos.cs.
const int Lucene.Net.Index.FieldInfos.FORMAT_START = - 2 |
Definition at line 43 of file FieldInfos.cs.