Method Add
Add(Document)
Adds field info for a Document.
Declaration
public void Add(Document doc)
Parameters
Type | Name | Description |
---|---|---|
Document | doc |
Add(Collections.Generic.ICollection<String>, Boolean)
Assumes the fields are not storing term vectors.
Declaration
public void Add(Collections.Generic.ICollection<string> names, bool isIndexed)
Parameters
Type | Name | Description |
---|---|---|
System. |
names | The names of the fields |
System. |
isIndexed | Whether the fields are indexed or not |
See Also
Add(String, Boolean)
Calls 5 parameter add with false for all TermVector parameters.
Declaration
public void Add(String name, bool isIndexed)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the Fieldable |
System. |
isIndexed | true if the field is indexed |
Add(String, Boolean, Boolean)
Calls 5 parameter add with false for term vector positions and offsets.
Declaration
public void Add(String name, bool isIndexed, bool storeTermVector)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the field |
System. |
isIndexed | true if the field is indexed |
System. |
storeTermVector | true if the term vector should be stored |
Add(String, Boolean, Boolean, Boolean, Boolean)
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.
Declaration
public void Add(String name, bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the field |
System. |
isIndexed | true if the field is indexed |
System. |
storeTermVector | true if the term vector should be stored |
System. |
storePositionWithTermVector | true if the term vector with positions should be stored |
System. |
storeOffsetWithTermVector | true if the term vector with offsets should be stored |
Add(String, Boolean, Boolean, Boolean, Boolean, Boolean)
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.
Declaration
public void Add(String name, bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool omitNorms)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the field |
System. |
isIndexed | true if the field is indexed |
System. |
storeTermVector | true if the term vector should be stored |
System. |
storePositionWithTermVector | true if the term vector with positions should be stored |
System. |
storeOffsetWithTermVector | true if the term vector with offsets should be stored |
System. |
omitNorms | true if the norms for the indexed field should be omitted |
Add(String, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
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.
Declaration
public FieldInfo Add(String name, bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool omitNorms, bool storePayloads, bool omitTermFreqAndPositions)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the field |
System. |
isIndexed | true if the field is indexed |
System. |
storeTermVector | true if the term vector should be stored |
System. |
storePositionWithTermVector | true if the term vector with positions should be stored |
System. |
storeOffsetWithTermVector | true if the term vector with offsets should be stored |
System. |
omitNorms | true if the norms for the indexed field should be omitted |
System. |
storePayloads | true if payloads should be stored for this field |
System. |
omitTermFreqAndPositions | true if term freqs should be omitted for this field |
Returns
Type | Description |
---|---|
Field |