Show / Hide Table of Contents

    Class SpanTermQuery

    Matches spans containing a term.

    Inheritance
    System.Object
    Query
    SpanQuery
    SpanTermQuery
    PayloadTermQuery
    Inherited Members
    SpanQuery.CreateWeight(IndexSearcher)
    Query.Boost
    Query.ToString()
    Query.Rewrite(IndexReader)
    Query.Clone()
    Namespace: Lucene.Net.Search.Spans
    Assembly: Lucene.Net.dll
    Syntax
    public class SpanTermQuery : SpanQuery

    Constructors

    | Improve this Doc View Source

    SpanTermQuery(Term)

    Construct a SpanTermQuery matching the named term's spans.

    Declaration
    public SpanTermQuery(Term term)
    Parameters
    Type Name Description
    Term term

    Fields

    | Improve this Doc View Source

    m_term

    Declaration
    protected Term m_term
    Field Value
    Type Description
    Term

    Properties

    | Improve this Doc View Source

    Field

    Declaration
    public override string Field { get; }
    Property Value
    Type Description
    System.String
    Overrides
    SpanQuery.Field
    | Improve this Doc View Source

    Term

    Return the term whose spans are matched.

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

    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

    ExtractTerms(ISet<Term>)

    Declaration
    public override void ExtractTerms(ISet<Term> terms)
    Parameters
    Type Name Description
    ISet<Term> terms
    Overrides
    Query.ExtractTerms(ISet<Term>)
    | Improve this Doc View Source

    GetHashCode()

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

    GetSpans(AtomicReaderContext, IBits, IDictionary<Term, TermContext>)

    Declaration
    public override Spans GetSpans(AtomicReaderContext context, IBits acceptDocs, IDictionary<Term, TermContext> termContexts)
    Parameters
    Type Name Description
    AtomicReaderContext context
    IBits acceptDocs
    IDictionary<Term, TermContext> termContexts
    Returns
    Type Description
    Spans
    Overrides
    SpanQuery.GetSpans(AtomicReaderContext, IBits, IDictionary<Term, TermContext>)
    | 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 © 2020 Licensed to the Apache Software Foundation (ASF)