Class AssertingQuery
Inheritance
Query
AssertingQuery
Inherited Members
Query.ToString()
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class AssertingQuery : Query
Constructors
AssertingQuery(Random, Query)
Declaration
public AssertingQuery(Random random, Query @in)
Parameters
Type |
Name |
Description |
Random |
random |
|
Query |
in |
|
Properties
Boost
Gets or Sets the boost for this query clause. Documents
matching this clause will (in addition to the normal weightings) have
their score multiplied by Lucene.Net.Search.Query.Boost. The boost is 1.0 by default.
Declaration
public override float Boost { get; set; }
Property Value
Overrides
Lucene.Net.Search.Query.Boost
Methods
Clone()
Returns a clone of this query.
Declaration
public override object Clone()
Returns
Overrides
Lucene.Net.Search.Query.Clone()
CreateWeight(IndexSearcher)
Expert: Constructs an appropriate Lucene.Net.Search.Weight implementation for this query.
Only implemented by primitive queries, which re-write to themselves.
Declaration
public override Weight CreateWeight(IndexSearcher searcher)
Parameters
Type |
Name |
Description |
IndexSearcher |
searcher |
|
Returns
Overrides
Lucene.Net.Search.Query.CreateWeight(Lucene.Net.Search.IndexSearcher)
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current object.
|
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 (Lucene.Net.Search.Query.Rewrite(Lucene.Net.Index.IndexReader)) form.
Declaration
public override void ExtractTerms(ISet<Term> terms)
Parameters
Type |
Name |
Description |
ISet<Term> |
terms |
|
Overrides
Exceptions
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A hash code for the current object.
|
Overrides
Lucene.Net.Search.Query.GetHashCode()
Rewrite(IndexReader)
Expert: called to re-write queries into primitive queries. For example,
a Lucene.Net.Search.PrefixQuery will be rewritten into a Lucene.Net.Search.BooleanQuery that consists
of Lucene.Net.Search.TermQuerys.
Declaration
public override Query Rewrite(IndexReader reader)
Parameters
Type |
Name |
Description |
IndexReader |
reader |
|
Returns
Overrides
Lucene.Net.Search.Query.Rewrite(Lucene.Net.Index.IndexReader)
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
Wrap(Random, Query)
Wrap a query if necessary.
Declaration
public static Query Wrap(Random random, Query query)
Parameters
Type |
Name |
Description |
Random |
random |
|
Query |
query |
|
Returns