You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Byron Miller <by...@yahoo.com> on 2005/11/01 14:51:34 UTC

Which fields can you call via detail.getvalue("....") out of the box?

I'm looking to see if i can pull a meta description in
lieu of summary for some content and wondering if this
is indexed - is there an easy way to see the fields
indexed by default and how they're exposed through
nutch bean?

Re: Which fields can you call via detail.getvalue("....") out of the box?

Posted by Doug Cutting <cu...@nutch.org>.
The "explain" page lists all stored fields by calling the toHtml() 
method of HitDetails.  You can also list things with:

for (int i = 0; i < detail.getLength(); i++) {
   String field = detail.getField(i);
   String value = detail.getValue(i);
   ...
}

Doug

Byron Miller wrote:
> I'm looking to see if i can pull a meta description in
> lieu of summary for some content and wondering if this
> is indexed - is there an easy way to see the fields
> indexed by default and how they're exposed through
> nutch bean?

Re: Which fields can you call via detail.getvalue("....") out of the box?

Posted by Bruno Patini Furtado <bp...@gmail.com>.
You can look at class org.apache.nutch.indexer.basic.BasicIndexingFilter.

The fields indexed into Lucene index by Nutch are: host, site, url, content,
anchors and title. In the class you will find more details of what field is
indexed under which circumstances.

I´ve accessed then directly through Lucene API using NutchDocumentAnalyzer.



On 11/1/05, Byron Miller <by...@yahoo.com> wrote:
>
> I'm looking to see if i can pull a meta description in
> lieu of summary for some content and wondering if this
> is indexed - is there an easy way to see the fields
> indexed by default and how they're exposed through
> nutch bean?
>



--
"Minds are like parachutes, they work best when open."

Bruno Patini Furtado
Software Developer
webpage: www.bpfurtado.net <http://www.bpfurtado.net>
blog: http://www.livejournal.com/users/bpfurtado/