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 SourceDocNameExtractor(String)
Constructor for Doc
Declaration
public DocNameExtractor(string docNameField)
Parameters
Type | Name | Description |
---|---|---|
System. |
docNameField | name of the stored field containing the doc name. |
Methods
| Improve this Doc View SourceDocName(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 |
---|---|---|
Index |
searcher | access to the index. |
System. |
docid | ID of doc whose name is needed. |
Returns
Type | Description |
---|---|
System. |
the name of the input doc as extracted from the index. |