Table of Contents

Class LuceneFacetOperation

Namespace
Examine.Lucene.Search
Assembly
Examine.Lucene.dll

An implementation of the fluent API boolean operations

public class LuceneFacetOperation : IFacetOperations, IQueryExecutor
Inheritance
LuceneFacetOperation
Implements
Inherited Members
Extension Methods

Constructors

LuceneFacetOperation(LuceneSearchQuery)

public LuceneFacetOperation(LuceneSearchQuery search)

Parameters

search LuceneSearchQuery

Methods

Execute(QueryOptions?)

Executes the query

public ISearchResults Execute(QueryOptions? options = null)

Parameters

options QueryOptions

Returns

ISearchResults

Facet(string, Action<IFacetQueryField>?)

public IFacetOperations Facet(string field, Action<IFacetQueryField>? facetConfiguration = null)

Parameters

field string
facetConfiguration Action<IFacetQueryField>

Returns

IFacetOperations

FacetDoubleRange(string, params DoubleRange[])

Add a range facet to the current query

public IFacetOperations FacetDoubleRange(string field, params DoubleRange[] doubleRanges)

Parameters

field string
doubleRanges DoubleRange[]

Returns

IFacetOperations

FacetFloatRange(string, params FloatRange[])

Add a range facet to the current query

public IFacetOperations FacetFloatRange(string field, params FloatRange[] floatRanges)

Parameters

field string
floatRanges FloatRange[]

Returns

IFacetOperations

FacetLongRange(string, params Int64Range[])

Add a range facet to the current query

public IFacetOperations FacetLongRange(string field, params Int64Range[] longRanges)

Parameters

field string
longRanges Int64Range[]

Returns

IFacetOperations

FacetString(string, Action<IFacetQueryField>?, params string[])

Add a facet string to the current query, filtered by a single value or multiple values

public IFacetOperations FacetString(string field, Action<IFacetQueryField>? facetConfiguration = null, params string[] values)

Parameters

field string
facetConfiguration Action<IFacetQueryField>
values string[]

Returns

IFacetOperations

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.