This Lucene code shows the fields used in a index:
public static void main(String[] args)
throws Exception
{
String pathToIndex = "C:/pathToNutchDataDir/crawl-data/index";
IndexReader reader = IndexReader.open(pathToIndex);
for (Iterator names = reader.getFieldNames(true).iterator(); names.hasNext();)
{
String name = (String) names.next();
System.out.println(name);
}
}
Which are:
- title
- site
- host
- content
- url
- anchor
On 11/15/05, Kasper Hansen <[EMAIL PROTECTED]> wrote:
>
> Hi,
> how can I search the results of my Nutch crawl?
>
> Which Lucene Fields do I need to use? I cannot find documentation on this.
> I
> can search my own Lucene indexes, but not indexes made by Nutch
>
> Thanks
> Kasper
>
--
"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/