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
    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>)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public class PrefixFilter : MultiTermQueryWrapperFilter<PrefixQuery>

    Constructors

    PrefixFilter(Term)

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

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

    Properties

    Prefix

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

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

    Methods

    ToString()

    Prints a user-readable version of this query.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    MultiTermQueryWrapperFilter<PrefixQuery>.ToString()
    Back to top Copyright © 2024 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.