Class SearchWithSortTask
Does sort search on specified field.
Implements
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class SearchWithSortTask : ReadTask, IDisposable
Constructors
SearchWithSortTask(PerfRunData)
Does sort search on specified field.
Declaration
public SearchWithSortTask(PerfRunData runData)
Parameters
Type | Name | Description |
---|---|---|
PerfRunData | runData |
Properties
Sort
Does sort search on specified field.
Declaration
public override Sort Sort { get; }
Property Value
Type | Description |
---|---|
Sort |
Overrides
SupportsParams
Sub classes that support parameters must override this method to return
true
if this task supports command line params.
Declaration
public override bool SupportsParams { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
WithMaxScore
Whether maxScores should be computed (only useful with field sort)
Declaration
public override bool WithMaxScore { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
WithRetrieve
Return true
if, with search & results traversing, docs should be retrieved.
Declaration
public override bool WithRetrieve { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
WithScore
Whether scores should be computed (only useful with field sort)
Declaration
public override bool WithScore { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
WithSearch
Return true
if search should be performed.
Declaration
public override bool WithSearch { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
WithTraverse
Return true
if, with search, results should be traversed.
Declaration
public override bool WithTraverse { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
WithWarm
Return true
if warming should be performed.
Declaration
public override bool WithWarm { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
GetQueryMaker()
Return query maker used for this task.
Declaration
public override IQueryMaker GetQueryMaker()
Returns
Type | Description |
---|---|
IQueryMaker |
Overrides
SetParams(string)
SortFields: field:type,field:type[,noscore][,nomaxscore]
If noscore is present, then we turn off score tracking in Lucene.Net.Search.TopFieldCollector. If nomaxscore is present, then we turn off maxScore tracking in Lucene.Net.Search.TopFieldCollector. name:string,page:int,subject:stringDeclaration
public override void SetParams(string sortField)
Parameters
Type | Name | Description |
---|---|---|
string | sortField |