You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Feng Ji <fe...@gmail.com> on 2006/08/20 22:30:45 UTC

show additional lucene index information on Nutch's Search Page

Hi there,

I used indexer to store one additional field in lucene index,
Field.Store.YES, Field.Index.NO. (I will only add one single field, I see
the discuss about performance penalty of this)

then, I want to retrieve it from nutch's search page. I took a look of how
nutch to get explanation and seems the logic go down to lucene package.
(maybe I miss something important)

I wonder if there is a way to retrieve indexed field and show it in search
page in nutch.

thanks,

Michael

Re: show additional lucene index information on Nutch's Search Page

Posted by Andrzej Bialecki <ab...@getopt.org>.
Feng Ji wrote:
> Hi there,
>
> I used indexer to store one additional field in lucene index,
> Field.Store.YES, Field.Index.NO. (I will only add one single field, I see
> the discuss about performance penalty of this)
>
> then, I want to retrieve it from nutch's search page. I took a look of 
> how
> nutch to get explanation and seems the logic go down to lucene package.
> (maybe I miss something important)
>
> I wonder if there is a way to retrieve indexed field and show it in 
> search
> page in nutch.

If the field is stored (i.e. indexed with Field.Store.YES), then you can 
retrieve it from HitDetails.getValue(fieldName).

-- 
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com