Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SpanQuery

    Base class for span-based queries.

    Inheritance
    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)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Search.Spans
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class SpanQuery : Query

    Properties

    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
    string

    Methods

    CreateWeight(IndexSearcher)

    Expert: Constructs an appropriate Weight implementation for this query.

    Only implemented by primitive queries, which re-write to themselves.
    Declaration
    public override Weight CreateWeight(IndexSearcher searcher)
    Parameters
    Type Name Description
    IndexSearcher searcher
    Returns
    Type Description
    Weight
    Overrides
    Query.CreateWeight(IndexSearcher)

    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
    IDictionary<Term, TermContext> termContexts
    Returns
    Type Description
    Spans
    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.