Class FieldDefinitionBase
- Namespace
- Dynamicweb.Indexing.Schemas
- Assembly
- Dynamicweb.Core.dll
Base class for field definitions
public abstract class FieldDefinitionBase
- Inheritance
-
FieldDefinitionBase
- Derived
- Inherited Members
Properties
Analyzed
Gets or sets a value indicating whether the field is run through an analyzer (tokenized)
when indexed. When false the value is indexed as a single untokenized term. Only
relevant when Indexed is true.
public bool Analyzed { get; set; }
Property Value
AnalyzerTypeName
Analyzer type name
public string? AnalyzerTypeName { get; set; }
Property Value
Boost
Gets or sets the index-time boost applied to the field, parsed as a float. Higher values increase the relevance contribution of the field at query time.
public string? Boost { get; set; }
Property Value
ClassName
public string ClassName { get; }
Property Value
DefaultStoreTermVectors
Gets the default value used by StoreTermVectors when it has not been explicitly set.
Defaults to false; field types that rely on term vectors (e.g. for spell-check) override this.
protected virtual bool DefaultStoreTermVectors { get; }
Property Value
Facetable
Gets or sets a value indicating whether facet values are generated for the field, allowing
it to be used for faceted navigation. Only relevant when Indexed is true.
public bool Facetable { get; set; }
Property Value
Group
Group name
public string Group { get; set; }
Property Value
Hidden
Gets or sets the value indicating whether the field is hidden.
public bool Hidden { get; set; }
Property Value
Indexed
Gets or sets a value indicating whether the field is indexed and therefore searchable.
When false the field is not added to the inverted index and cannot be queried.
public bool Indexed { get; set; }
Property Value
IsFieldFromSchemaExtender
Is field from a schema extender
public bool IsFieldFromSchemaExtender { get; set; }
Property Value
IsNumeric
Determines whether the type of the field is numeric.
public bool IsNumeric { get; }
Property Value
Name
Name of field definition
public string Name { get; set; }
Property Value
StoreTermVectors
Gets or sets a value indicating whether term vectors are stored for this field.
Term vectors are required for spell-check suggestions and highlighting, but add
significant write cost and disk usage on every indexed document. Only enable on fields
that need those features; leaving it disabled improves indexing throughput and reduces
index size, which matters most on large indexes (millions of documents).
Only relevant when Indexed is true.
When not explicitly set, falls back to DefaultStoreTermVectors, which most field
types default to false.
public bool StoreTermVectors { get; set; }
Property Value
Stored
Gets or sets a value indicating whether the field value is stored in the index and can be retrieved verbatim in query results. Stored fields are not searchable on their own; combine with Indexed to make the field both retrievable and searchable.
public bool Stored { get; set; }
Property Value
SystemName
System name
public string SystemName { get; set; }
Property Value
TypeName
Type of field definition
public string TypeName { get; set; }
Property Value
Methods
GetAnalyzer(string)
Gets analyzer type name specified by provider type name
public string? GetAnalyzer(string providerTypeName)
Parameters
providerTypeNamestringProvider type name
Returns
- string
Analyzer type name
GetTypeOfField()
Gets the type of the field.
public Type? GetTypeOfField()
Returns
GetTypeOfFieldOrElement()
Gets the type of the field type or the element type if the type is an array.
public Type? GetTypeOfFieldOrElement()
Returns
SetFieldType(FieldTypeDefinition)
Sets type of field definition
public void SetFieldType(FieldTypeDefinition fieldType)
Parameters
fieldTypeFieldTypeDefinition