Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SearchTravTask

    Search and Traverse task.

    Inheritance
    object
    PerfTask
    ReadTask
    SearchTravTask
    SearchTravRetHighlightTask
    SearchTravRetLoadFieldSelectorTask
    SearchTravRetTask
    SearchTravRetVectorHighlightTask
    Implements
    IDisposable
    Inherited Members
    ReadTask.DoLogic()
    ReadTask.CreateCollector()
    ReadTask.RetrieveDoc(IndexReader, int)
    ReadTask.WithCollector
    ReadTask.WithScore
    ReadTask.WithMaxScore
    ReadTask.Setup()
    ReadTask.NumHits
    ReadTask.NumToHighlight
    ReadTask.GetBenchmarkHighlighter(Query)
    ReadTask.Sort
    ReadTask.GetFieldsToHighlight(Document)
    PerfTask.m_logStep
    PerfTask.m_params
    PerfTask.NEW_LINE
    PerfTask.SetRunInBackground(int)
    PerfTask.RunInBackground
    PerfTask.BackgroundDeltaPriority
    PerfTask.Stop
    PerfTask.StopNow()
    PerfTask.Clone()
    PerfTask.Dispose()
    PerfTask.Dispose(bool)
    PerfTask.RunAndMaybeStats(bool)
    PerfTask.GetName()
    PerfTask.SetName(string)
    PerfTask.RunData
    PerfTask.Depth
    PerfTask.ToString()
    PerfTask.GetLogMessage(int)
    PerfTask.ShouldNeverLogAtStart
    PerfTask.ShouldNotRecordStats
    PerfTask.TearDown()
    PerfTask.Params
    PerfTask.DisableCounting
    PerfTask.AlgLineNum
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class SearchTravTask : ReadTask, 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: traversal size (otherwise all results are traversed).

    Other side effects: counts additional 1 (record) for each traversed hit.

    Constructors

    SearchTravTask(PerfRunData)

    Search and Traverse task.

    Declaration
    public SearchTravTask(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: traversal size (otherwise all results are traversed).

    Other side effects: counts additional 1 (record) for each traversed hit.

    Fields

    m_traversalSize

    Search and Traverse task.

    Declaration
    protected int m_traversalSize
    Field Value
    Type Description
    int
    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: traversal size (otherwise all results are traversed).

    Other side effects: counts additional 1 (record) for each traversed hit.

    Properties

    SupportsParams

    Search and Traverse task.

    Declaration
    public override bool SupportsParams { get; }
    Property Value
    Type Description
    bool
    Overrides
    PerfTask.SupportsParams
    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: traversal size (otherwise all results are traversed).

    Other side effects: counts additional 1 (record) for each traversed hit.
    See Also
    SupportsParams

    TraversalSize

    Specify the number of hits to traverse. Tasks should override this if they want to restrict the number of hits that are traversed when WithTraverse is true. Must be greater than 0.

    Read task calculates the traversal as: Math.Min(hits.Length, TraversalSize)
    Declaration
    public override int TraversalSize { get; }
    Property Value
    Type Description
    int
    Overrides
    ReadTask.TraversalSize
    Remarks

    Unless overridden, the return value is MaxValue.

    WithRetrieve

    Return true if, with search & results traversing, docs should be retrieved.

    Declaration
    public override bool WithRetrieve { get; }
    Property Value
    Type Description
    bool
    Overrides
    ReadTask.WithRetrieve
    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: traversal size (otherwise all results are traversed).

    Other side effects: counts additional 1 (record) for each traversed hit.

    WithSearch

    Return true if search should be performed.

    Declaration
    public override bool WithSearch { get; }
    Property Value
    Type Description
    bool
    Overrides
    ReadTask.WithSearch
    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: traversal size (otherwise all results are traversed).

    Other side effects: counts additional 1 (record) for each traversed hit.

    WithTraverse

    Return true if, with search, results should be traversed.

    Declaration
    public override bool WithTraverse { get; }
    Property Value
    Type Description
    bool
    Overrides
    ReadTask.WithTraverse
    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: traversal size (otherwise all results are traversed).

    Other side effects: counts additional 1 (record) for each traversed hit.

    WithWarm

    Return true if warming should be performed.

    Declaration
    public override bool WithWarm { get; }
    Property Value
    Type Description
    bool
    Overrides
    ReadTask.WithWarm
    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: traversal size (otherwise all results are traversed).

    Other side effects: counts additional 1 (record) for each traversed hit.

    Methods

    GetQueryMaker()

    Return query maker used for this task.

    Declaration
    public override IQueryMaker GetQueryMaker()
    Returns
    Type Description
    IQueryMaker
    Overrides
    ReadTask.GetQueryMaker()
    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: traversal size (otherwise all results are traversed).

    Other side effects: counts additional 1 (record) for each traversed hit.

    SetParams(string)

    Set the params of this task.

    Declaration
    public override void SetParams(string @params)
    Parameters
    Type Name Description
    string params
    Overrides
    PerfTask.SetParams(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: traversal size (otherwise all results are traversed).

    Other side effects: counts additional 1 (record) for each traversed hit.
    Exceptions
    Type Condition
    NotSupportedException

    For tasks supporting command line parameters.

    Implements

    IDisposable
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.