Class SearchWithSortTask
java.lang.Object
org.apache.lucene.benchmark.byTask.tasks.PerfTask
org.apache.lucene.benchmark.byTask.tasks.ReadTask
org.apache.lucene.benchmark.byTask.tasks.SearchWithSortTask
- All Implemented Interfaces:
Cloneable
Does sort search on specified field.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn query maker used for this task.getSort()voidSortFields: field:type,field:type[,noscore][,nomaxscore]booleanSub classes that support parameters must override this method to return true.booleanReturn true if, with search and results traversing, docs should be retrieved.booleanReturn true if search should be performed.booleanReturn true if, with search, results should be traversed.booleanwithWarm()Return true if warming should be performed.Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.ReadTask
createCollectorManager, doLogic, numHits, retrieveDoc, setup, traversalSize, withCollector, withTopDocs, withTotalHitsMethods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask
clone, close, getAlgLineNum, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setAlgLineNum, setDepth, setDisableCounting, setName, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toString
-
Constructor Details
-
SearchWithSortTask
-
-
Method Details
-
setParams
SortFields: field:type,field:type[,noscore][,nomaxscore]If noscore is present, then we turn off score tracking in
TopFieldCollector. If nomaxscore is present, then we turn off maxScore tracking inTopFieldCollector.name:string,page:int,subject:string
-
supportsParams
public boolean supportsParams()Description copied from class:PerfTaskSub classes that support parameters must override this method to return true.- Overrides:
supportsParamsin classPerfTask- Returns:
- true iff this task supports command line params.
-
getQueryMaker
Description copied from class:ReadTaskReturn query maker used for this task.- Specified by:
getQueryMakerin classReadTask
-
withRetrieve
public boolean withRetrieve()Description copied from class:ReadTaskReturn true if, with search and results traversing, docs should be retrieved.- Specified by:
withRetrievein classReadTask
-
withSearch
public boolean withSearch()Description copied from class:ReadTaskReturn true if search should be performed.- Specified by:
withSearchin classReadTask
-
withTraverse
public boolean withTraverse()Description copied from class:ReadTaskReturn true if, with search, results should be traversed.- Specified by:
withTraversein classReadTask
-
withWarm
public boolean withWarm()Description copied from class:ReadTaskReturn true if warming should be performed. -
getSort
-