Show / Hide Table of Contents

    Class DocNameExtractor

    Utility: extract doc names from an index

    Inheritance
    System.Object
    DocNameExtractor
    Namespace: Lucene.Net.Benchmarks.Quality.Utils
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class DocNameExtractor : object

    Constructors

    | Improve this Doc View Source

    DocNameExtractor(String)

    Constructor for DocNameExtractor.

    Declaration
    public DocNameExtractor(string docNameField)
    Parameters
    Type Name Description
    System.String docNameField

    name of the stored field containing the doc name.

    Methods

    | Improve this Doc View Source

    DocName(IndexSearcher, Int32)

    Extract the name of the input doc from the index.

    Declaration
    public virtual string DocName(IndexSearcher searcher, int docid)
    Parameters
    Type Name Description
    IndexSearcher searcher

    access to the index.

    System.Int32 docid

    ID of doc whose name is needed.

    Returns
    Type Description
    System.String

    the name of the input doc as extracted from the index.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)