Hey,
Hits hits = bean.search(query, 10);
Hit[] show = hits.getHits(0, length);
HitDetails[] details = bean.getDetails(show);
Each detail array element would have field value accessible by field
name or index
Above snippet is from NutchBean 's main class and similar code is in
search.jsp file
xingjian wrote:
Hello everyone:
in order to returns the stored fields of the Document in this index.
if index is Lucene2.0 then using:
IndexReader reader = IndexReader.open(INDEX_STORE_PATH);
for(int i=0;i<reader.numDocs();i++){
System.out.println(reader.document(i));
}
if index is Nutch0.9 then How to write?
I look the org.apache.nutch.segment.SegmentReader,but i do not know how to
wirte ?
Thanks
--
This message has been scanned for viruses and
dangerous content and is believed to be clean.