Thanks Sagar Naik-2
I try it then success. 

Sagar Naik-2 wrote:
> 
> 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.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-returns-the-stored-fields-of-the-Document-in-this-index-of-Nutch--tf4768453.html#a13643041
Sent from the Nutch - User mailing list archive at Nabble.com.

Reply via email to