Table of Contents

Class SingleType

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

Represents a float/single IndexFieldRangeValueType<T>

public class SingleType : IndexFieldRangeValueType<float>, IIndexFieldValueType, IIndexRangeValueType<float>, IIndexRangeValueType, IIndexFacetValueType
Inheritance
SingleType
Implements
Inherited Members

Constructors

SingleType(string, ILoggerFactory, bool)

[Obsolete("To be removed in Examine V5")]
public SingleType(string fieldName, ILoggerFactory logger, bool store = true)

Parameters

fieldName string
logger ILoggerFactory
store bool

SingleType(string, bool, bool, ILoggerFactory, bool)

public SingleType(string fieldName, bool isFacetable, bool taxonomyIndex, ILoggerFactory logger, bool store)

Parameters

fieldName string
isFacetable bool
taxonomyIndex bool
logger ILoggerFactory
store bool

Properties

IsTaxonomyFaceted

Whether the Field is indexed in the Taxonomy Index

public bool IsTaxonomyFaceted { get; }

Property Value

bool

SortableFieldName

Can be sorted by the normal field name

public override string SortableFieldName { get; }

Property Value

string

Methods

AddSingleValue(Document, object)

Adds a single value to the document

protected override void AddSingleValue(Document doc, object value)

Parameters

doc Document
value object

AddValue(Document, object?)

Adds a value to the document

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

Parameters

doc Document
value object

ExtractFacets(IFacetExtractionContext, IFacetField)

Extracts the facets from the field

public virtual IEnumerable<KeyValuePair<string, IFacetResult>> ExtractFacets(IFacetExtractionContext facetExtractionContext, IFacetField field)

Parameters

facetExtractionContext IFacetExtractionContext
field IFacetField

Returns

IEnumerable<KeyValuePair<string, IFacetResult>>

A dictionary of facets for this field

GetQuery(float?, float?, bool, bool)

Gets a query as Lucene.Net.Search.Query

public override Query GetQuery(float? lower, float? upper, bool lowerInclusive = true, bool upperInclusive = true)

Parameters

lower float?
upper float?
lowerInclusive bool
upperInclusive bool

Returns

Query

GetQuery(string)

By default returns a Lucene.Net.Search.TermQuery

public override Query? GetQuery(string query)

Parameters

query string

Returns

Query