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
-
-
Constructor Summary
Constructors Constructor Description SearchWithSortTask(PerfRunData runData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryMaker
getQueryMaker()
Return query maker used for this task.Sort
getSort()
void
setParams(String sortField)
SortFields: field:type,field:type[,noscore][,nomaxscore]boolean
supportsParams()
Sub classes that support parameters must override this method to return true.boolean
withRetrieve()
Return true if, with search and results traversing, docs should be retrieved.boolean
withSearch()
Return true if search should be performed.boolean
withTraverse()
Return true if, with search, results should be traversed.boolean
withWarm()
Return true if warming should be performed.-
Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.ReadTask
createCollector, doLogic, numHits, retrieveDoc, setup, traversalSize, withCollector, withTopDocs, withTotalHits
-
Methods 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 Detail
-
SearchWithSortTask
public SearchWithSortTask(PerfRunData runData)
-
-
Method Detail
-
setParams
public void setParams(String sortField)
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:PerfTask
Sub classes that support parameters must override this method to return true.- Overrides:
supportsParams
in classPerfTask
- Returns:
- true iff this task supports command line params.
-
getQueryMaker
public QueryMaker getQueryMaker()
Description copied from class:ReadTask
Return query maker used for this task.- Specified by:
getQueryMaker
in classReadTask
-
withRetrieve
public boolean withRetrieve()
Description copied from class:ReadTask
Return true if, with search and results traversing, docs should be retrieved.- Specified by:
withRetrieve
in classReadTask
-
withSearch
public boolean withSearch()
Description copied from class:ReadTask
Return true if search should be performed.- Specified by:
withSearch
in classReadTask
-
withTraverse
public boolean withTraverse()
Description copied from class:ReadTask
Return true if, with search, results should be traversed.- Specified by:
withTraverse
in classReadTask
-
withWarm
public boolean withWarm()
Description copied from class:ReadTask
Return true if warming should be performed.
-
-