• API

    Show / Hide Table of Contents

    Class SpanQuery

    Base class for span-based queries.

    Inheritance
    System.Object
    Query
    SpanQuery
    FieldMaskingSpanQuery
    SpanMultiTermQueryWrapper<Q>
    SpanNearQuery
    SpanNotQuery
    SpanOrQuery
    SpanPositionCheckQuery
    SpanTermQuery
    Inherited Members
    Query.Boost
    Query.ToString(String)
    Query.ToString()
    Query.Rewrite(IndexReader)
    Query.ExtractTerms(ISet<Term>)
    Query.Clone()
    Query.GetHashCode()
    Query.Equals(Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.Search.Spans
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class SpanQuery : Query

    Properties

    | Improve this Doc View Source

    Field

    Returns the name of the field matched by this query.

    Note that this may return null if the query matches no terms.

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

    Methods

    | Improve this Doc View Source

    CreateWeight(IndexSearcher)

    Declaration
    public override Weight CreateWeight(IndexSearcher searcher)
    Parameters
    Type Name Description
    IndexSearcher searcher
    Returns
    Type Description
    Weight
    Overrides
    Query.CreateWeight(IndexSearcher)
    | Improve this Doc View Source

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

    Expert: Returns the matches for this query in an index. Used internally to search for spans.

    Declaration
    public abstract Spans GetSpans(AtomicReaderContext context, IBits acceptDocs, IDictionary<Term, TermContext> termContexts)
    Parameters
    Type Name Description
    AtomicReaderContext context
    IBits acceptDocs
    System.Collections.Generic.IDictionary<Term, TermContext> termContexts
    Returns
    Type Description
    Spans
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)