Class SearchTravRetVectorHighlightTask
Search and Traverse and Retrieve docs task. Highlight the fields in the retrieved documents by using FastVectorHighlighter.
Inherited Members
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class SearchTravRetVectorHighlightTask : SearchTravTask
Remarks
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:
size[<traversal size>],highlight[<int>],maxFrags[<int>],mergeContiguous[<boolean>],fields[name1;name2;...]
- traversal sizeThe number of hits to traverse, otherwise all will be traversed.
- highlightThe number of the hits to highlight. Will always be less than or equal to traversal size. Default is
(i.e. hits.Length). - maxFragsThe maximum number of fragments to score by the highlighter.
- fragSizeThe length of fragments.
- fieldsThe fields to highlight. If not specified all fields will be highlighted (or at least attempted).
Example:
"SearchVecHlgtSameRdr" SearchTravRetVectorHighlight(size[10],highlight[10],maxFrags[3],fields[body]) > : 1000
Fields must be stored and term vector offsets and positions in order must be true for this task to work.
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.
Constructors
Name | Description |
---|---|
SearchTravRetVectorHighlightTask(PerfRunData) |
Fields
Name | Description |
---|---|
m_fragSize | |
m_highlighter | |
m_maxFrags | |
m_numToHighlight | |
m_paramFields |
Properties
Name | Description |
---|---|
NumToHighlight | |
WithRetrieve |
Methods
Name | Description |
---|---|
GetBenchmarkHighlighter(Query) | |
GetFieldsToHighlight(Document) | |
SetParams(String) | |
Setup() |