Class SearchTravRetLoadFieldSelectorTask
Search and Traverse and Retrieve docs task using a FieldVisitor loading only the requested fields.
Implements
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class SearchTravRetLoadFieldSelectorTask : SearchTravTask, IDisposable
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 param: comma separated list of Fields to load. Other side effects: counts additional 1 (record) for each traversed hit, and 1 more for each retrieved (non null) document.Constructors
SearchTravRetLoadFieldSelectorTask(PerfRunData)
Search and Traverse and Retrieve docs task using a FieldVisitor loading only the requested fields.
Declaration
public SearchTravRetLoadFieldSelectorTask(PerfRunData runData)
Parameters
Type | Name | Description |
---|---|---|
PerfRunData | runData |
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 param: comma separated list of Fields to load. Other side effects: counts additional 1 (record) for each traversed hit, and 1 more for each retrieved (non null) document.Fields
m_fieldsToLoad
Search and Traverse and Retrieve docs task using a FieldVisitor loading only the requested fields.
Declaration
protected ISet<string> m_fieldsToLoad
Field Value
Type | Description |
---|---|
ISet<string> |
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 param: comma separated list of Fields to load. Other side effects: counts additional 1 (record) for each traversed hit, and 1 more for each retrieved (non null) document.Properties
SupportsParams
Search and Traverse and Retrieve docs task using a FieldVisitor loading only the requested fields.
Declaration
public override bool SupportsParams { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
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 param: comma separated list of Fields to load. Other side effects: counts additional 1 (record) for each traversed hit, and 1 more for each retrieved (non null) document.See Also
WithRetrieve
Return true
if, with search & results traversing, docs should be retrieved.
Declaration
public override bool WithRetrieve { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
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 param: comma separated list of Fields to load. Other side effects: counts additional 1 (record) for each traversed hit, and 1 more for each retrieved (non null) document.Methods
RetrieveDoc(IndexReader, int)
Search and Traverse and Retrieve docs task using a FieldVisitor loading only the requested fields.
Declaration
protected override Document RetrieveDoc(IndexReader ir, int id)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | ir | |
int | id |
Returns
Type | Description |
---|---|
Document |
Overrides
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 param: comma separated list of Fields to load. Other side effects: counts additional 1 (record) for each traversed hit, and 1 more for each retrieved (non null) document.SetParams(string)
Set the params of this task.
Declaration
public override void SetParams(string @params)
Parameters
Type | Name | Description |
---|---|---|
string | params |
Overrides
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 param: comma separated list of Fields to load. Other side effects: counts additional 1 (record) for each traversed hit, and 1 more for each retrieved (non null) document.Exceptions
Type | Condition |
---|---|
NotSupportedException | For tasks supporting command line parameters. |