Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ComplexPhraseQueryParser.ComplexPhraseQuery

    Used to handle the query content in between quotes and produced Span-based interpretations of the clauses.

    Inheritance
    System.Object
    Lucene.Net.Search.Query
    ComplexPhraseQueryParser.ComplexPhraseQuery
    Inherited Members
    Lucene.Net.Search.Query.Boost
    Lucene.Net.Search.Query.ToString()
    Lucene.Net.Search.Query.CreateWeight(Lucene.Net.Search.IndexSearcher)
    Query.ExtractTerms(ISet<Term>)
    Lucene.Net.Search.Query.Clone()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.QueryParsers.ComplexPhrase
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class ComplexPhraseQuery : Query

    Constructors

    | Improve this Doc View Source

    ComplexPhraseQuery(String, String, Int32, Boolean)

    Declaration
    public ComplexPhraseQuery(string field, string phrasedQueryStringContents, int slopFactor, bool inOrder)
    Parameters
    Type Name Description
    System.String field
    System.String phrasedQueryStringContents
    System.Int32 slopFactor
    System.Boolean inOrder

    Properties

    | Improve this Doc View Source

    Field

    Declaration
    public string Field { get; }
    Property Value
    Type Description
    System.String

    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
    Overrides
    Query.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    Lucene.Net.Search.Query.GetHashCode()
    | Improve this Doc View Source

    ParsePhraseElements(ComplexPhraseQueryParser)

    Declaration
    protected void ParsePhraseElements(ComplexPhraseQueryParser qp)
    Parameters
    Type Name Description
    ComplexPhraseQueryParser qp
    | Improve this Doc View Source

    Rewrite(IndexReader)

    Declaration
    public override Query Rewrite(IndexReader reader)
    Parameters
    Type Name Description
    Lucene.Net.Index.IndexReader reader
    Returns
    Type Description
    Lucene.Net.Search.Query
    Overrides
    Lucene.Net.Search.Query.Rewrite(Lucene.Net.Index.IndexReader)
    | Improve this Doc View Source

    ToString(String)

    Declaration
    public override string ToString(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    System.String
    Overrides
    Query.ToString(String)
    • 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.