Class LuceneSearchFilteringOperation
Lucene Search Filter Operation
public class LuceneSearchFilteringOperation : LuceneSearchFilteringOperationBase, IFilter, INestedFilter
- Inheritance
-
LuceneSearchFilteringOperation
- Implements
- Inherited Members
Constructors
LuceneSearchFilteringOperation(LuceneSearchQuery)
Constructor
public LuceneSearchFilteringOperation(LuceneSearchQuery luceneSearchQuery)
Parameters
luceneSearchQuery
LuceneSearchQuery
Properties
LuceneSearchQuery
Search Query
public LuceneSearchQuery LuceneSearchQuery { get; }
Property Value
Methods
ChainFilters(Action<IFilterChain>)
Chain filters
public override IBooleanFilterOperation ChainFilters(Action<IFilterChain> chain)
Parameters
chain
Action<IFilterChain>
Returns
CreateBooleanOp()
Creates a new LuceneFilteringBooleanOperation
protected override LuceneFilteringBooleanOperationBase CreateBooleanOp()
Returns
CreateChainOp()
Creates a new FilterChainOpBase
protected override FilterChainOpBase CreateChainOp()
Returns
DoubleRangeFilter(string, double?, double?, bool, bool)
Matches items as defined by the IIndexFieldValueType used for the fields specified. If a type is not defined for a field name, or the type does not implement IIndexRangeValueType for the types of min and max, nothing will be added
public override IBooleanFilterOperation DoubleRangeFilter(string field, double? min, double? max, bool minInclusive, bool maxInclusive)
Parameters
Returns
FieldValueExistsFilter(string)
Document must have value for field
public override IBooleanFilterOperation FieldValueExistsFilter(string field)
Parameters
field
string
Returns
FieldValueNotExistsFilter(string)
Document must not have value for field
public override IBooleanFilterOperation FieldValueNotExistsFilter(string field)
Parameters
field
string
Returns
FloatRangeFilter(string, float?, float?, bool, bool)
Matches items as defined by the IIndexFieldValueType used for the fields specified. If a type is not defined for a field name, or the type does not implement IIndexRangeValueType for the types of min and max, nothing will be added
public override IBooleanFilterOperation FloatRangeFilter(string field, float? min, float? max, bool minInclusive, bool maxInclusive)
Parameters
Returns
IntRangeFilter(string, int?, int?, bool, bool)
Matches items as defined by the IIndexFieldValueType used for the fields specified. If a type is not defined for a field name, or the type does not implement IIndexRangeValueType for the types of min and max, nothing will be added
public override IBooleanFilterOperation IntRangeFilter(string field, int? min, int? max, bool minInclusive, bool maxInclusive)
Parameters
Returns
LongRangeFilter(string, long?, long?, bool, bool)
Matches items as defined by the IIndexFieldValueType used for the fields specified. If a type is not defined for a field name, or the type does not implement IIndexRangeValueType for the types of min and max, nothing will be added
public override IBooleanFilterOperation LongRangeFilter(string field, long? min, long? max, bool minInclusive, bool maxInclusive)
Parameters
Returns
NestedChainFilters(Action<IFilterChain>)
protected override INestedBooleanFilterOperation NestedChainFilters(Action<IFilterChain> chain)
Parameters
chain
Action<IFilterChain>
Returns
NestedFieldValueExistsFilter(string)
protected override INestedBooleanFilterOperation NestedFieldValueExistsFilter(string field)
Parameters
field
string
Returns
NestedFieldValueNotExistsFilter(string)
protected override INestedBooleanFilterOperation NestedFieldValueNotExistsFilter(string field)
Parameters
field
string
Returns
NestedQueryFilter(Func<INestedQuery, INestedBooleanOperation>, BooleanOperation)
protected override INestedBooleanFilterOperation NestedQueryFilter(Func<INestedQuery, INestedBooleanOperation> inner, BooleanOperation defaultOp)
Parameters
inner
Func<INestedQuery, INestedBooleanOperation>defaultOp
BooleanOperation
Returns
NestedSpatialOperationFilter(string, ExamineSpatialOperation, Func<IExamineSpatialShapeFactory, IExamineSpatialShape>)
protected override INestedBooleanFilterOperation NestedSpatialOperationFilter(string field, ExamineSpatialOperation spatialOperation, Func<IExamineSpatialShapeFactory, IExamineSpatialShape> shape)
Parameters
field
stringspatialOperation
ExamineSpatialOperationshape
Func<IExamineSpatialShapeFactory, IExamineSpatialShape>
Returns
NestedTermFilter(FilterTerm)
protected override INestedBooleanFilterOperation NestedTermFilter(FilterTerm term)
Parameters
term
FilterTerm
Returns
NestedTermPrefixFilter(FilterTerm)
protected override INestedBooleanFilterOperation NestedTermPrefixFilter(FilterTerm term)
Parameters
term
FilterTerm
Returns
NestedTermsFilter(IEnumerable<FilterTerm>)
protected override INestedBooleanFilterOperation NestedTermsFilter(IEnumerable<FilterTerm> terms)
Parameters
terms
IEnumerable<FilterTerm>
Returns
QueryFilter(Func<INestedQuery, INestedBooleanOperation>, BooleanOperation)
Must match query
public override IBooleanFilterOperation QueryFilter(Func<INestedQuery, INestedBooleanOperation> inner, BooleanOperation defaultOp = BooleanOperation.And)
Parameters
inner
Func<INestedQuery, INestedBooleanOperation>defaultOp
BooleanOperation
Returns
SpatialOperationFilter(string, ExamineSpatialOperation, Func<IExamineSpatialShapeFactory, IExamineSpatialShape>)
Executes Spatial operation as a Filter on field and shape
public override IBooleanFilterOperation SpatialOperationFilter(string field, ExamineSpatialOperation spatialOperation, Func<IExamineSpatialShapeFactory, IExamineSpatialShape> shape)
Parameters
field
stringIndex field name
spatialOperation
ExamineSpatialOperationshape
Func<IExamineSpatialShapeFactory, IExamineSpatialShape>Shape
Returns
TermFilter(FilterTerm)
Term must match
public override IBooleanFilterOperation TermFilter(FilterTerm term)
Parameters
term
FilterTerm
Returns
TermPrefixFilter(FilterTerm)
Term must match as prefix
public override IBooleanFilterOperation TermPrefixFilter(FilterTerm term)
Parameters
term
FilterTerm
Returns
TermsFilter(IEnumerable<FilterTerm>)
Terms must match
public override IBooleanFilterOperation TermsFilter(IEnumerable<FilterTerm> terms)
Parameters
terms
IEnumerable<FilterTerm>