Class LuceneTaxonomySearcher
A searcher for taxonomy indexes
public class LuceneTaxonomySearcher : BaseLuceneSearcher, ILuceneTaxonomySearcher, ISearcher, IDisposable
- Inheritance
-
LuceneTaxonomySearcher
- Implements
- Inherited Members
Constructors
LuceneTaxonomySearcher(string, SearcherTaxonomyManager, Analyzer, FieldValueTypeCollection, FacetsConfig)
Constructor allowing for creating a NRT instance based on a given writer
public LuceneTaxonomySearcher(string name, SearcherTaxonomyManager searcherManager, Analyzer analyzer, FieldValueTypeCollection fieldValueTypeCollection, FacetsConfig facetsConfig)
Parameters
name
stringsearcherManager
SearcherTaxonomyManageranalyzer
AnalyzerfieldValueTypeCollection
FieldValueTypeCollectionfacetsConfig
FacetsConfig
Properties
CategoryCount
The number of categories in the Taxonomy
public int CategoryCount { get; }
Property Value
Methods
Dispose(bool)
Disposes of the searcher
protected override void Dispose(bool disposing)
Parameters
disposing
bool
GetOrdinal(string, string[])
Returns the Ordinal for the dim and path
public int GetOrdinal(string dimension, string[] path)
Parameters
Returns
GetPath(int)
Given a dimensions ordinal (id), get the Path.
public IFacetLabel GetPath(int ordinal)
Parameters
ordinal
intDemension ordinal (id)
Returns
- IFacetLabel
Path
GetSearchContext()
Gets the seach context
public override ISearchContext GetSearchContext()
Returns
GetTaxonomySearchContext()
Gets the Taxonomy SearchContext
public virtual ITaxonomySearchContext GetTaxonomySearchContext()