Class LuceneFacetOperation
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
Facet(string, Action<IFacetQueryField>?)
public IFacetOperations Facet(string field, Action<IFacetQueryField>? facetConfiguration = null)
Parameters
field
stringfacetConfiguration
Action<IFacetQueryField>
Returns
FacetDoubleRange(string, params DoubleRange[])
Add a range facet to the current query
public IFacetOperations FacetDoubleRange(string field, params DoubleRange[] doubleRanges)
Parameters
field
stringdoubleRanges
DoubleRange[]
Returns
FacetFloatRange(string, params FloatRange[])
Add a range facet to the current query
public IFacetOperations FacetFloatRange(string field, params FloatRange[] floatRanges)
Parameters
field
stringfloatRanges
FloatRange[]
Returns
FacetLongRange(string, params Int64Range[])
Add a range facet to the current query
public IFacetOperations FacetLongRange(string field, params Int64Range[] longRanges)
Parameters
field
stringlongRanges
Int64Range[]
Returns
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
stringfacetConfiguration
Action<IFacetQueryField>values
string[]
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.