Class DocNameExtractor
java.lang.Object
org.apache.lucene.benchmark.quality.utils.DocNameExtractor
Utility: extract doc names from an index
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondocName
(IndexSearcher searcher, int docid) Extract the name of the input doc from the index.
-
Constructor Details
-
DocNameExtractor
Constructor for DocNameExtractor.- Parameters:
docNameField
- name of the stored field containing the doc name.
-
-
Method Details
-
docName
Extract the name of the input doc from the index.- Parameters:
searcher
- access to the index.docid
- ID of doc whose name is needed.- Returns:
- the name of the input doc as extracted from the index.
- Throws:
IOException
- if cannot extract the doc name from the index.
-