Table of Contents

Class LuceneTaxonomySearcher

Namespace
Examine.Lucene.Providers
Assembly
Examine.Lucene.dll

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 string
searcherManager SearcherTaxonomyManager
analyzer Analyzer
fieldValueTypeCollection FieldValueTypeCollection
facetsConfig FacetsConfig

Properties

CategoryCount

The number of categories in the Taxonomy

public int CategoryCount { get; }

Property Value

int

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

dimension string
path string[]

Returns

int

GetPath(int)

Given a dimensions ordinal (id), get the Path.

public IFacetLabel GetPath(int ordinal)

Parameters

ordinal int

Demension ordinal (id)

Returns

IFacetLabel

Path

GetSearchContext()

Gets the seach context

public override ISearchContext GetSearchContext()

Returns

ISearchContext

GetTaxonomySearchContext()

Gets the Taxonomy SearchContext

public virtual ITaxonomySearchContext GetTaxonomySearchContext()

Returns

ITaxonomySearchContext