My guess would be that you just have a wrong path to the index
directory somewhere.  You can add your own checks to your own code,
before you create IndexSearcher/Reader.

Something like:
if (new File(/path/to/your/index/dir).isDirectory()) - ok, else not ok
;)

Otis

--- hui <[EMAIL PROTECTED]> wrote:
> Hi,
> I am getting "not a directory" error when doing search after I moved
> the
> index from local to a SAN box. FSDirectory does not recognize the
> index
> directory as a directory. Any idea? I use JDK142 and Lucene 1.3
> final.
> 
> Creating the index works fine.
> 
> Regards,
> hui
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to