Show / Hide Table of Contents

    Class PrefixFilter

    A Filter that restricts search results to values that have a matching prefix in a given field.

    Inheritance
    System.Object
    Filter
    MultiTermQueryWrapperFilter<PrefixQuery>
    PrefixFilter
    Inherited Members
    MultiTermQueryWrapperFilter<PrefixQuery>.m_query
    MultiTermQueryWrapperFilter<PrefixQuery>.Equals(Object)
    MultiTermQueryWrapperFilter<PrefixQuery>.GetHashCode()
    MultiTermQueryWrapperFilter<PrefixQuery>.Field
    MultiTermQueryWrapperFilter<PrefixQuery>.GetDocIdSet(AtomicReaderContext, IBits)
    Filter.NewAnonymous(Func<AtomicReaderContext, IBits, DocIdSet>)
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public class PrefixFilter : MultiTermQueryWrapperFilter<PrefixQuery>

    Constructors

    | Improve this Doc View Source

    PrefixFilter(Term)

    Declaration
    public PrefixFilter(Term prefix)
    Parameters
    Type Name Description
    Term prefix

    Properties

    | Improve this Doc View Source

    Prefix

    Declaration
    public virtual Term Prefix { get; }
    Property Value
    Type Description
    Term

    Methods

    | Improve this Doc View Source

    ToString()

    Prints a user-readable version of this query.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    Lucene.Net.Search.MultiTermQueryWrapperFilter<Lucene.Net.Search.PrefixQuery>.ToString()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)