|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.benchmark.quality.utils.DocNameExtractor
public class DocNameExtractor
Utility: extract doc names from an index
| Constructor Summary | |
|---|---|
DocNameExtractor(java.lang.String docNameField)
Constructor for DocNameExtractor. |
|
| Method Summary | |
|---|---|
java.lang.String |
docName(org.apache.lucene.search.Searcher searcher,
int docid)
Extract the name of the input doc from the index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocNameExtractor(java.lang.String docNameField)
docNameField - name of the stored field containing the doc name.| Method Detail |
|---|
public java.lang.String docName(org.apache.lucene.search.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||