Class SearchTask
java.lang.Object
org.apache.lucene.benchmark.byTask.tasks.PerfTask
org.apache.lucene.benchmark.byTask.tasks.ReadTask
org.apache.lucene.benchmark.byTask.tasks.SearchTask
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
SearchWithCollectorTask
Search task.
Note: This task reuses the reader if it is already open. Otherwise a reader is opened at start and closed at the end.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn query maker used for this task.boolean
Return true if, with search and results traversing, docs should be retrieved.boolean
Return true if search should be performed.boolean
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, getSort, 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, setParams, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, supportsParams, tearDown, toString
-
Constructor Details
-
SearchTask
-
-
Method Details
-
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. -
getQueryMaker
Description copied from class:ReadTask
Return query maker used for this task.- Specified by:
getQueryMaker
in classReadTask
-