Table of Contents

Class ValueTypeFactoryCollection

Namespace
Examine.Lucene
Assembly
Examine.Lucene.dll

Manages the collection of IFieldValueTypeFactory

public class ValueTypeFactoryCollection : IEnumerable<KeyValuePair<string, IFieldValueTypeFactory>>, IEnumerable
Inheritance
ValueTypeFactoryCollection
Implements
Inherited Members

Constructors

ValueTypeFactoryCollection(IReadOnlyDictionary<string, IFieldValueTypeFactory>)

Constructor

public ValueTypeFactoryCollection(IReadOnlyDictionary<string, IFieldValueTypeFactory> valueTypeFactories)

Parameters

valueTypeFactories IReadOnlyDictionary<string, IFieldValueTypeFactory>

Properties

Count

The ammount of key/value pairs in the collection

public int Count { get; }

Property Value

int

Methods

GetDefaultValueTypes(ILoggerFactory, Analyzer)

Returns the default index value types that is used in normal construction of an indexer

public static IReadOnlyDictionary<string, IFieldValueTypeFactory> GetDefaultValueTypes(ILoggerFactory loggerFactory, Analyzer defaultAnalyzer)

Parameters

loggerFactory ILoggerFactory
defaultAnalyzer Analyzer

Returns

IReadOnlyDictionary<string, IFieldValueTypeFactory>

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<KeyValuePair<string, IFieldValueTypeFactory>> GetEnumerator()

Returns

IEnumerator<KeyValuePair<string, IFieldValueTypeFactory>>

An enumerator that can be used to iterate through the collection.

GetRequiredFactory(string)

Returns the IFieldValueTypeFactory by name, if it's not found an exception is thrown

public IFieldValueTypeFactory GetRequiredFactory(string valueTypeName)

Parameters

valueTypeName string

Returns

IFieldValueTypeFactory

TryGetFactory(string, out IFieldValueTypeFactory)

Try get for the factory

public bool TryGetFactory(string valueTypeName, out IFieldValueTypeFactory fieldValueTypeFactory)

Parameters

valueTypeName string
fieldValueTypeFactory IFieldValueTypeFactory

Returns

bool