Fork me on GitHub
  • API

    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>)
    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 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 © 2021 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.