Table of Contents

Class IndexFieldValueTypeBase

Namespace
Examine.Lucene.Indexing
Assembly
Examine.Lucene.dll

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 string
loggerFactory ILoggerFactory
store 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

string

Logger

The logger

public ILogger Logger { get; }

Property Value

ILogger

SortableFieldName

Returns the sortable field name or null if the value isn't sortable

public virtual string? SortableFieldName { get; }

Property Value

string

Remarks

By default it will not be sortable

Store

Should the value be stored

public bool Store { get; }

Property Value

bool

Methods

AddSingleValue(Document, object)

Adds a single value to the document

protected abstract void AddSingleValue(Document doc, object value)

Parameters

doc Document
value object

AddValue(Document, object?)

Adds a value to the document

public virtual void AddValue(Document doc, object? value)

Parameters

doc Document
value 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 object
parsedVal T

Returns

bool

Type Parameters

T