lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From puffm...@darksleep.com (Steven J. Owens)
Subject Re: newbi question
Date Mon, 22 Oct 2001 13:37:12 GMT
[ Charset ISO-8859-1 unsupported, converting... ]
> I am new to lucene and I can not understand why I am getting following error
> with this program?
> 
> public class Search {
>   public static void main(String[] args) {
> 	try{
>     String indexPath = "d:\\org", queryString = "parag";
>     Searcher searcher = new IndexSearcher(indexPath);
>
> ERROR: the error I am getting is that it throws IOException saying that can
> not find org directory in D: (which is there with a file).
> Can anybody help me? So that I can read a file from directory and search
> with given criterion.

     Hm, are you sure it should be two slashes?  Alternately, try using
forward-slashes (java will map // to whatever your system uses, but not
necessarily \\).

Steven J. Owens
puff@darksleep.com


Mime
View raw message