Show / Hide Table of Contents

    Class SpanNotQuery

    Removes matches which overlap with another SpanQuery or within a x tokens before or y tokens after another SpanQuery.

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

    Constructors

    | Improve this Doc View Source

    SpanNotQuery(SpanQuery, SpanQuery)

    Construct a SpanNotQuery matching spans from include which have no overlap with spans from exclude.

    Declaration
    public SpanNotQuery(SpanQuery include, SpanQuery exclude)
    Parameters
    Type Name Description
    SpanQuery include
    SpanQuery exclude
    | Improve this Doc View Source

    SpanNotQuery(SpanQuery, SpanQuery, Int32)

    Construct a SpanNotQuery matching spans from include which have no overlap with spans from exclude within dist tokens of include.

    Declaration
    public SpanNotQuery(SpanQuery include, SpanQuery exclude, int dist)
    Parameters
    Type Name Description
    SpanQuery include
    SpanQuery exclude
    System.Int32 dist
    | Improve this Doc View Source

    SpanNotQuery(SpanQuery, SpanQuery, Int32, Int32)

    Construct a SpanNotQuery matching spans from include which have no overlap with spans from exclude within pre tokens before or post tokens of include.

    Declaration
    public SpanNotQuery(SpanQuery include, SpanQuery exclude, int pre, int post)
    Parameters
    Type Name Description
    SpanQuery include
    SpanQuery exclude
    System.Int32 pre
    System.Int32 post

    Properties

    | Improve this Doc View Source

    Exclude

    Return the SpanQuery whose matches must not overlap those returned.

    Declaration
    public virtual SpanQuery Exclude { get; }
    Property Value
    Type Description
    SpanQuery
    | 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

    Include

    Return the SpanQuery whose matches are filtered.

    Declaration
    public virtual SpanQuery Include { get; }
    Property Value
    Type Description
    SpanQuery

    Methods

    | Improve this Doc View Source

    Clone()

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object
    Overrides
    Query.Clone()
    | Improve this Doc View Source

    Equals(Object)

    Returns true if o is equal to this.

    Declaration
    public override bool Equals(object o)
    Parameters
    Type Name Description
    System.Object o
    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

    Rewrite(IndexReader)

    Declaration
    public override Query Rewrite(IndexReader reader)
    Parameters
    Type Name Description
    IndexReader reader
    Returns
    Type Description
    Query
    Overrides
    Query.Rewrite(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 © 2020 Licensed to the Apache Software Foundation (ASF)