| java.lang.Object org.apache.lucene.benchmark.quality.utils.DocNameExtractor
DocNameExtractor | public class DocNameExtractor (Code) | | Utility: extract doc names from an index
|
Constructor Summary | |
public | DocNameExtractor(String docNameField) Constructor for DocNameExtractor.
Parameters: docNameField - name of the stored field containing the doc name. |
Method Summary | |
public String | docName(Searcher searcher, int docid) Extract the name of the input doc from the index.
Parameters: searcher - access to the index. Parameters: docid - ID of doc whose name is needed. |
DocNameExtractor | public DocNameExtractor(String docNameField)(Code) | | Constructor for DocNameExtractor.
Parameters: docNameField - name of the stored field containing the doc name. |
docName | public String docName(Searcher searcher, int docid) throws IOException(Code) | | Extract the name of the input doc from the index.
Parameters: searcher - access to the index. Parameters: docid - ID of doc whose name is needed. the name of the input doc as extracted from the index. throws: IOException - if cannot extract the doc name from the index. |
|
|