lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: FSDirectory
Date Fri, 30 Nov 2007 14:10:33 GMT
A directory that your program can modify <G>. I assume that
you are running on a unix-like system and the directory you've
specified is protected from modification by whatever user
your process is identified as.

But two other things:
1> do you really want to create a new index as the "true" indicates?
2> This form is deprecated. I'm not sure what the first version that
deprecated this, but from the 2.1 documentation....
*(File <> file,
boolean create)
          *Deprecated.* *Use IndexWriter's create flag, instead, to create a
new index.

*But I'd expect the same behavior from IndexWriter with the create flag...


On Nov 30, 2007 8:34 AM, Liaqat Ali <> wrote:

> I m facing problem with this code..
> dir = new FSDirectory();
>    dir.getDirectory(indexDir, true);
> i get error that FSDirectory has protected access. So what i should use
> instead of it...
> Liaqat
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message