public class DocNameExtractor
extends java.lang.Object
| Constructor and Description |
|---|
DocNameExtractor(java.lang.String docNameField)
Constructor for DocNameExtractor.
|
public DocNameExtractor(java.lang.String docNameField)
docNameField - name of the stored field containing the doc name.public java.lang.String docName(Searcher searcher, int docid) throws java.io.IOException
searcher - access to the index.docid - ID of doc whose name is needed.java.io.IOException - if cannot extract the doc name from the index.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.