Show / Hide Table of Contents

    Class SearchTravRetHighlightTask

    Search and Traverse and Retrieve docs task. Highlight the fields in the retrieved documents.

    Inheritance
    System.Object
    PerfTask
    ReadTask
    SearchTravTask
    SearchTravRetHighlightTask
    Inherited Members
    SearchTravTask.m_traversalSize
    SearchTravTask.WithSearch
    SearchTravTask.WithTraverse
    SearchTravTask.WithWarm
    SearchTravTask.GetQueryMaker()
    SearchTravTask.TraversalSize
    SearchTravTask.SupportsParams
    ReadTask.DoLogic()
    ReadTask.CreateCollector()
    ReadTask.RetrieveDoc(IndexReader, Int32)
    ReadTask.WithCollector
    ReadTask.WithScore
    ReadTask.WithMaxScore
    ReadTask.NumHits
    ReadTask.Sort
    PerfTask.m_logStep
    PerfTask.m_params
    PerfTask.NEW_LINE
    PerfTask.SetRunInBackground(Int32)
    PerfTask.RunInBackground
    PerfTask.BackgroundDeltaPriority
    PerfTask.Stop
    PerfTask.StopNow()
    PerfTask.Clone()
    PerfTask.Dispose()
    PerfTask.Dispose(Boolean)
    PerfTask.RunAndMaybeStats(Boolean)
    PerfTask.GetName()
    PerfTask.SetName(String)
    PerfTask.RunData
    PerfTask.Depth
    PerfTask.ToString()
    PerfTask.GetLogMessage(Int32)
    PerfTask.ShouldNeverLogAtStart
    PerfTask.ShouldNotRecordStats
    PerfTask.TearDown()
    PerfTask.Params
    PerfTask.DisableCounting
    PerfTask.AlgLineNum
    Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class SearchTravRetHighlightTask : SearchTravTask
    Remarks

    Uses the SimpleHTMLFormatter for formatting.

    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.
    mergeContiguoustrue if contiguous fragments should be merged.
    fieldsThe fields to highlight. If not specified all fields will be highlighted (or at least attempted).

    Example:

    "SearchHlgtSameRdr" SearchTravRetHighlight(size[10],highlight[10],mergeContiguous[true],maxFrags[3],fields[body]) > : 1000

    Documents must be stored in order for this task to work. Additionally, term vector positions can be used as well.

    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

    | Improve this Doc View Source

    SearchTravRetHighlightTask(PerfRunData)

    Declaration
    public SearchTravRetHighlightTask(PerfRunData runData)
    Parameters
    Type Name Description
    PerfRunData runData

    Fields

    | Improve this Doc View Source

    m_highlighter

    Declaration
    protected Highlighter m_highlighter
    Field Value
    Type Description
    Highlighter
    | Improve this Doc View Source

    m_maxDocCharsToAnalyze

    Declaration
    protected int m_maxDocCharsToAnalyze
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    m_maxFrags

    Declaration
    protected int m_maxFrags
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    m_mergeContiguous

    Declaration
    protected bool m_mergeContiguous
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    m_numToHighlight

    Declaration
    protected int m_numToHighlight
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    m_paramFields

    Declaration
    protected ISet<string> m_paramFields
    Field Value
    Type Description
    ISet<System.String>

    Properties

    | Improve this Doc View Source

    NumToHighlight

    Declaration
    public override int NumToHighlight { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    ReadTask.NumToHighlight
    | Improve this Doc View Source

    WithRetrieve

    Declaration
    public override bool WithRetrieve { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    SearchTravTask.WithRetrieve

    Methods

    | Improve this Doc View Source

    GetBenchmarkHighlighter(Query)

    Declaration
    protected override BenchmarkHighlighter GetBenchmarkHighlighter(Query q)
    Parameters
    Type Name Description
    Query q
    Returns
    Type Description
    BenchmarkHighlighter
    Overrides
    ReadTask.GetBenchmarkHighlighter(Query)
    | Improve this Doc View Source

    GetFieldsToHighlight(Document)

    Declaration
    protected override ICollection<string> GetFieldsToHighlight(Document document)
    Parameters
    Type Name Description
    Document document
    Returns
    Type Description
    ICollection<System.String>
    Overrides
    ReadTask.GetFieldsToHighlight(Document)
    | Improve this Doc View Source

    SetParams(String)

    Declaration
    public override void SetParams(string params)
    Parameters
    Type Name Description
    System.String params
    Overrides
    SearchTravTask.SetParams(String)
    | Improve this Doc View Source

    Setup()

    Declaration
    public override void Setup()
    Overrides
    ReadTask.Setup()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)