Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    Filter
    FieldValueFilter
    Inherited Members
    Filter.NewAnonymous(Func<AtomicReaderContext, IBits, DocIdSet>)
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public class FieldValueFilter : Filter

    Constructors

    | Improve this Doc View Source

    FieldValueFilter(String)

    Creates a new FieldValueFilter

    Declaration
    public FieldValueFilter(string field)
    Parameters
    Type Name Description
    System.String field

    The field to filter

    | Improve this Doc View Source

    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 true all documents with no value in the given field are accepted.

    Properties

    | Improve this Doc View Source

    Field

    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.

    | Improve this Doc View Source

    Negate

    Returns true if this filter is negated, otherwise false

    Declaration
    public virtual bool Negate { get; }
    Property Value
    Type Description
    System.Boolean

    true if this filter is negated, otherwise false

    Methods

    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    | 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
    Filter.GetDocIdSet(AtomicReaderContext, IBits)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)