Class IndexFieldValueTypeBase
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public abstract class IndexFieldValueTypeBase : IIndexFieldValueType
- Inheritance
-
IndexFieldValueTypeBase
- Implements
- Derived
- Inherited Members
Constructors
IndexFieldValueTypeBase(string, ILoggerFactory, bool)
protected IndexFieldValueTypeBase(string fieldName, ILoggerFactory loggerFactory, bool store = true)
Parameters
fieldName
stringloggerFactory
ILoggerFactorystore
bool
Properties
Analyzer
Returns the analyzer for this field type, or null to use the default
public virtual Analyzer? Analyzer { get; }
Property Value
- Analyzer
FieldName
The field name
public string FieldName { get; }
Property Value
Logger
The logger
public ILogger Logger { get; }
Property Value
SortableFieldName
Returns the sortable field name or null if the value isn't sortable
public virtual string? SortableFieldName { get; }
Property Value
Remarks
By default it will not be sortable
Store
Should the value be stored
public bool Store { get; }
Property Value
Methods
AddSingleValue(Document, object)
Adds a single value to the document
protected abstract void AddSingleValue(Document doc, object value)
Parameters
doc
Documentvalue
object
AddValue(Document, object?)
Adds a value to the document
public virtual void AddValue(Document doc, object? value)
Parameters
doc
Documentvalue
object
GetQuery(string)
By default returns a Lucene.Net.Search.TermQuery
public virtual Query? GetQuery(string query)
Parameters
query
string
Returns
- Query
TryConvert<T>(object, out T)
Tries to parse a type using the Type's type converter
protected bool TryConvert<T>(object val, out T parsedVal)
Parameters
val
objectparsedVal
T
Returns
Type Parameters
T