Class OrQuery
Factory for disjunctions
Implements
Inherited Members
Namespace: Lucene.Net.QueryParsers.Surround.Query
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class OrQuery : ComposedQuery, IDistanceSubQuery
Constructors
OrQuery(IList<SrndQuery>, bool, string)
Factory for disjunctions
Declaration
public OrQuery(IList<SrndQuery> queries, bool infix, string opName)
Parameters
Type | Name | Description |
---|---|---|
IList<SrndQuery> | queries | |
bool | infix | |
string | opName |
Methods
AddSpanQueries(SpanNearClauseFactory)
Factory for disjunctions
Declaration
public virtual void AddSpanQueries(SpanNearClauseFactory sncf)
Parameters
Type | Name | Description |
---|---|---|
SpanNearClauseFactory | sncf |
DistanceSubQueryNotAllowed()
When DistanceSubQueryNotAllowed() returns non null, the reason why the subquery is not allowed as a distance subquery is returned.
When DistanceSubQueryNotAllowed() returns null AddSpanQueries(SpanNearClauseFactory) can be used in the creation of the span near clause for the subquery.Declaration
public virtual string DistanceSubQueryNotAllowed()
Returns
Type | Description |
---|---|
string |
MakeLuceneQueryFieldNoBoost(string, BasicQueryFactory)
Factory for disjunctions
Declaration
public override Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf)
Parameters
Type | Name | Description |
---|---|---|
string | fieldName | |
BasicQueryFactory | qf |
Returns
Type | Description |
---|---|
Query |