Class BoostedQuery
Query that is boosted by a ValueSource
Inheritance
System.Object
Lucene.Net.Search.Query
BoostedQuery
Inherited Members
Lucene.Net.Search.Query.Boost
Lucene.Net.Search.Query.ToString()
Lucene.Net.Search.Query.Clone()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Queries.Function
Assembly: Lucene.Net.Queries.dll
Syntax
public class BoostedQuery : Query
Constructors
| Improve this Doc View SourceBoostedQuery(Query, ValueSource)
Declaration
public BoostedQuery(Query subQuery, ValueSource boostVal)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Search.Query | subQuery | |
ValueSource | boostVal |
Properties
| Improve this Doc View SourceQuery
Declaration
public virtual Query Query { get; }
Property Value
Type | Description |
---|---|
Lucene.Net.Search.Query |
ValueSource
Declaration
public virtual ValueSource ValueSource { get; }
Property Value
Type | Description |
---|---|
ValueSource |
Methods
| Improve this Doc View SourceCreateWeight(IndexSearcher)
Declaration
public override Weight CreateWeight(IndexSearcher searcher)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Search.IndexSearcher | searcher |
Returns
Type | Description |
---|---|
Lucene.Net.Search.Weight |
Overrides
Lucene.Net.Search.Query.CreateWeight(Lucene.Net.Search.IndexSearcher)
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceExtractTerms(ISet<Term>)
Declaration
public override void ExtractTerms(ISet<Term> terms)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ISet<Lucene.Net.Index.Term> | terms |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Lucene.Net.Search.Query.GetHashCode()
|
Improve this Doc
View Source
Rewrite(IndexReader)
Declaration
public override Query Rewrite(IndexReader reader)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.IndexReader | reader |
Returns
Type | Description |
---|---|
Lucene.Net.Search.Query |
Overrides
Lucene.Net.Search.Query.Rewrite(Lucene.Net.Index.IndexReader)
|
Improve this Doc
View Source
ToString(String)
Declaration
public override string ToString(string field)
Parameters
Type | Name | Description |
---|---|---|
System.String | field |
Returns
Type | Description |
---|---|
System.String |