Class FilterClause
A Lucene.Net.Search.Filter that wrapped with an indication of how that filter is used when composed with another filter. (Follows the boolean logic in Lucene.Net.Search.BooleanClause for composition of queries.)
Inherited Members
Namespace: Lucene.Net.Queries
Assembly: Lucene.Net.Queries.dll
Syntax
public sealed class FilterClause
Constructors
FilterClause(Filter, Occur)
Create a new FilterClause
Declaration
public FilterClause(Filter filter, Occur occur)
Parameters
Type | Name | Description |
---|---|---|
Filter | filter | A Lucene.Net.Search.Filter object containing a BitSet |
Occur | occur | A parameter implementation indicating SHOULD, MUST or MUST NOT |
Properties
Filter
Returns this FilterClause's filter
Declaration
public Filter Filter { get; }
Property Value
Type | Description |
---|---|
Filter | A Lucene.Net.Search.Filter object |
Occur
Returns this FilterClause's occur parameter
Declaration
public Occur Occur { get; }
Property Value
Type | Description |
---|---|
Occur | An Lucene.Net.Search.Occur object |
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |