Class FunctionQuery
Returns a score for each document based on a ValueSource,
often some function of the value of a field.
Note: This API is experimental and may change in non backward-compatible ways in the future
Inheritance
System.Object
FunctionQuery
Inherited Members
Lucene.Net.Search.Query.ExtractTerms(ISet<>)
Assembly: Lucene.Net.Queries.dll
Syntax
public class FunctionQuery : Query
Constructors
|
Improve this Doc
View Source
FunctionQuery(ValueSource)
Declaration
public FunctionQuery(ValueSource func)
Parameters
Type |
Name |
Description |
ValueSource |
func |
defines the function to be used for scoring
|
Properties
|
Improve this Doc
View Source
ValueSource
Declaration
public virtual ValueSource ValueSource { get; }
Property Value
Methods
|
Improve this Doc
View Source
CreateWeight(IndexSearcher)
Declaration
public override Weight CreateWeight(IndexSearcher searcher)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Equals(Object)
Returns true if o
is equal to this.
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
System.Object |
o |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public override void ExtractTerms(ISet<Term> terms)
Parameters
Type |
Name |
Description |
ISet<Term> |
terms |
|
|
Improve this Doc
View Source
GetHashCode()
Returns a hash code value for this object.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
|
Improve this Doc
View Source
Rewrite(IndexReader)
Declaration
public override Query Rewrite(IndexReader reader)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
ToString(String)
Prints a user-readable version of this query.
Declaration
public override string ToString(string field)
Parameters
Type |
Name |
Description |
System.String |
field |
|
Returns
Type |
Description |
System.String |
|