Class Query
Inheritance
System.Object
Query
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
[Serializable]
public abstract class Query
Properties
|
Improve this Doc
View Source
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 Boost. The boost is 1.0 by default.
Declaration
public virtual float Boost { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
|
Improve this Doc
View Source
Clone()
Returns a clone of this query.
Declaration
public virtual object Clone()
Returns
| Type |
Description |
| System.Object |
|
|
Improve this Doc
View Source
CreateWeight(IndexSearcher)
Expert: Constructs an appropriate Weight implementation for this query.
Only implemented by primitive queries, which re-write to themselves.
Declaration
public virtual Weight CreateWeight(IndexSearcher searcher)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
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 virtual void ExtractTerms(ISet<Term> terms)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.ISet<Term> |
terms |
|
Exceptions
| Type |
Condition |
| System.InvalidOperationException |
If this query is not yet rewritten
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
Rewrite(IndexReader)
Declaration
public virtual Query Rewrite(IndexReader reader)
Parameters
Returns
|
Improve this Doc
View Source
ToString()
Prints a query to a string.
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
ToString(String)
Prints a query to a string, with field assumed to be the
default field and omitted.
Declaration
public abstract string ToString(string field)
Parameters
| Type |
Name |
Description |
| System.String |
field |
|
Returns
| Type |
Description |
| System.String |
|