Class SpanOrQuery
Matches the union of its clauses.
Assembly: Lucene.Net.dll
Syntax
public class SpanOrQuery : SpanQuery
Constructors
SpanOrQuery(params SpanQuery[])
Declaration
public SpanOrQuery(params SpanQuery[] clauses)
Parameters
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 override string Field { get; }
Property Value
Overrides
Methods
AddClause(SpanQuery)
Adds a clause to this query
Declaration
public void AddClause(SpanQuery clause)
Parameters
Clone()
Returns a clone of this query.
Declaration
public override object Clone()
Returns
Overrides
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object o)
Parameters
| Type |
Name |
Description |
| object |
o |
|
Returns
| Type |
Description |
| bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
Expert: adds all terms occurring in this query to the terms set. Only
works if this query is in its rewritten (Rewrite(IndexReader)) form.
Declaration
public override void ExtractTerms(ISet<Term> terms)
Parameters
Overrides
Exceptions
GetClauses()
Return the clauses whose spans are matched.
Declaration
public virtual SpanQuery[] GetClauses()
Returns
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| int |
A hash code for the current object.
|
Overrides
GetSpans(AtomicReaderContext, IBits, IDictionary<Term, TermContext>)
Expert: Returns the matches for this query in an index. Used internally
to search for spans.
Declaration
public override Spans GetSpans(AtomicReaderContext context, IBits acceptDocs, IDictionary<Term, TermContext> termContexts)
Parameters
Returns
Overrides
Rewrite(IndexReader)
Declaration
public override Query Rewrite(IndexReader reader)
Parameters
Returns
Overrides
ToString(string)
Prints a query to a string, with field assumed to be the
default field and omitted.
Declaration
public override string ToString(string field)
Parameters
| Type |
Name |
Description |
| string |
field |
|
Returns
Overrides