Okay.. I did try that.. Good idea.. 
I moved the index to C:\ and tried 
        <value>\outputDir</value> and 
        <value>c:\outputDir</value>
Did not help.. Basically I am running out of guesses you see.. 
Maybe I don't know how to do this on evil MS Windows.. Maybe this does
not work on evil MS Windows? Is that the problem? All the examples I
have seen are unix based... Is this my problem.. Windows.. 


ray


-----Original Message-----
From: Alexander Aristov [mailto:[email protected]] 
Sent: Friday, March 06, 2009 8:44 AM
To: [email protected]
Subject: Re: Can not get Nutch query to work.. Can you help..

To begin specify full path to the nutch index.

2009/3/6 Lukas, Ray <[email protected]>

>
> I am not able to make any nutch query work. I know it is something
> simple. Could someone take a look at what I am doing..
>
> Here is the code I am using, it is pretty simple:
>
>
>                NutchBean bean = new NutchBean(conf);
>                Query query = Query.parse("title:credit", conf);
>                Hits hits = bean.search(query, 10);
>                System.out.println("hits.getLength()=>" +
>                        hits.getLength());
>
> The configuration is the exact same configuration I am using to create
> the indexes. The very same object. Pointing Luke at these indexes and
> issuing the above search yields plenty of hits. Yet this yields no
hits.
>
> The other factor in the set up in nutch-site.xml. I added the
following
> which points me to the root directory of my newly created indexes.
>
>        <property>
>         <name>searcher.dir</name>
>         <value>outputDir</value>
>         <description>
>                Text Removed from this email, remains in code
>         </description>
>        </property>
>
> Query returns zero hits. Tried several things, no luck. Can you help
me
> out?
>
> ray
>
> On Mar 3, 2009, at 7:14 PM, [email protected] wrote:
>

Reply via email to