Class BasicQueryFactory
Factory for creating basic term queries
Inherited Members
Namespace: Lucene.Net.QueryParsers.Surround.Query
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class BasicQueryFactory
Constructors
BasicQueryFactory()
Factory for creating basic term queries
Declaration
public BasicQueryFactory()
BasicQueryFactory(int)
Factory for creating basic term queries
Declaration
public BasicQueryFactory(int maxBasicQueries)
Parameters
Type | Name | Description |
---|---|---|
int | maxBasicQueries |
Properties
MaxBasicQueries
Factory for creating basic term queries
Declaration
public virtual int MaxBasicQueries { get; }
Property Value
Type | Description |
---|---|
int |
NrQueriesMade
Factory for creating basic term queries
Declaration
public virtual int NrQueriesMade { get; }
Property Value
Type | Description |
---|---|
int |
Methods
CheckMax()
Factory for creating basic term queries
Declaration
protected virtual void CheckMax()
Equals(object)
Two BasicQueryFactory's are equal when they generate the same types of basic queries, or both cannot generate queries anymore.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
NewSpanTermQuery(Term)
Factory for creating basic term queries
Declaration
public virtual SpanTermQuery NewSpanTermQuery(Term term)
Parameters
Type | Name | Description |
---|---|---|
Term | term |
Returns
Type | Description |
---|---|
SpanTermQuery |
NewTermQuery(Term)
Factory for creating basic term queries
Declaration
public virtual TermQuery NewTermQuery(Term term)
Parameters
Type | Name | Description |
---|---|---|
Term | term |
Returns
Type | Description |
---|---|
TermQuery |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |