public class SearchTravRetHighlightTask extends SearchTravTask
Note: This task reuses the reader if it is already open. Otherwise a reader is opened at start and closed at the end.
Takes optional multivalued, comma separated param string as: type[<enum>],maxFrags[<int>],fields[name1;name2;...]
"SearchHlgtSameRdr" SearchTravRetHighlight(type[UH],maxFrags[3],fields[body]) > : 1000Documents must be stored in order for this task to work. Additionally, term vector positions can be used as well, and offsets in postings is another option.
Other side effects: counts additional 1 (record) for each traversed hit, and 1 more for each retrieved (non null) document and 1 for each fragment returned.
traversalSize| Constructor and Description |
|---|
SearchTravRetHighlightTask(PerfRunData runData) |
| Modifier and Type | Method and Description |
|---|---|
void |
setParams(String params)
Set the params of this task.
|
void |
setup()
Task setup work that should not be measured for that specific task.
|
protected int |
withTopDocs(IndexSearcher searcher,
Query q,
TopDocs hits) |
getQueryMaker, supportsParams, traversalSize, withRetrieve, withSearch, withTraverse, withWarmcreateCollector, doLogic, getSort, numHits, retrieveDoc, withCollector, withTotalHitsclone, close, getAlgLineNum, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setAlgLineNum, setDepth, setDisableCounting, setName, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toStringpublic SearchTravRetHighlightTask(PerfRunData runData)
public void setParams(String params)
PerfTasksetParams in class SearchTravTaskpublic void setup()
throws Exception
PerfTaskPerfTask.doLogic() to this method. Only the work done in PerfTask.doLogic()
is measured for this task. Notice that higher level (sequence) tasks
containing this task would then measure larger time than the sum of their
contained tasks.protected int withTopDocs(IndexSearcher searcher, Query q, TopDocs hits) throws Exception
withTopDocs in class ReadTaskExceptionCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.