Class SpanNotQuery
  
  Removes matches which overlap with another SpanQuery or
within a x tokens before or y tokens after another SpanQuery.
 
  
  
    Inheritance
    System.Object
    
    
    SpanNotQuery
   
  
    Inherited Members
    
    
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
   
  
  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
  
  
    |
    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
  
  
    |
    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
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Field
  
  
  Declaration
  
    public override string Field { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Include
  Return the SpanQuery whose matches are filtered. 
 
  
  Declaration
  
    public virtual SpanQuery Include { get; }
   
  Property Value
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Clone()
  
  
  Declaration
  
    public override object Clone()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Object | 
         | 
      
    
  
  Overrides
  
  
    |
    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
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public override void ExtractTerms(ISet<Term> terms)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.ISet<Term> | 
        terms | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetHashCode()
  
  
  Declaration
  
    public override int GetHashCode()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Overrides
  
  
    |
    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
  
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Rewrite(IndexReader)
  
  
  Declaration
  
    public override Query Rewrite(IndexReader reader)
   
  Parameters
  
  Returns
  
  Overrides
  
  
    |
    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