Class FieldValueFilter
A Filter that accepts all documents that have one or more values in a given field. this Filter request IBits from the IFieldCache and build the bits if not present.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public class FieldValueFilter : Filter
Constructors
| Improve this Doc View SourceFieldValueFilter(String)
Creates a new FieldValueFilter
Declaration
public FieldValueFilter(string field)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | The field to filter |
FieldValueFilter(String, Boolean)
Creates a new FieldValueFilter
Declaration
public FieldValueFilter(string field, bool negate)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | The field to filter |
System.Boolean | negate | If |
Properties
| Improve this Doc View SourceField
Returns the field this filter is applied on.
Declaration
public virtual string Field { get; }
Property Value
Type | Description |
---|---|
System.String | The field this filter is applied on. |
Negate
Returns true
if this filter is negated, otherwise false
Declaration
public virtual bool Negate { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetDocIdSet(AtomicReaderContext, IBits)
Declaration
public override DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | |
IBits | acceptDocs |
Returns
Type | Description |
---|---|
DocIdSet |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()