version 2.4, sorry for not clarifying.
Yonik, pardon my ignorance. I still don't get it. When instantiating
NIOFSDIrectory, how would I specify the path? I see only the empty
constructor.

With FSDirectory, you use the factory: getDirectory(File)

-John

On Thu, Dec 4, 2008 at 1:26 PM, Yonik Seeley <[EMAIL PROTECTED]> wrote:

> On Thu, Dec 4, 2008 at 4:11 PM, John Wang <[EMAIL PROTECTED]> wrote:
> > Hi guys:
> >    We did some profiling and benchmarking:
> >
> >    The thread contention on FSDIrectory is gone, and for the set of
> queries
> > we are running, performance improved by a factor of 5 (to be
> conservative).
> >
> >    Great job, this is awesome, a simple change and made a huge
> difference.
> >
> >    To get NIOFSDirectory installed, I didn't find any documentation
> > (doesn't mean there aren't any), after reading the code, I resorted to:
> >
> >  static
> >  {
> >
> >
> System.setProperty("org.apache.lucene.FSDirectory.class",NIOFSDirectory.class.getName());
> >  }
> >   I am sure this is not the intended usage, as this is really ugly. What
> is
> > the suggested usage?
>
> Instantiate NIOFSDirectory directly and pass it to the IndexReader.open()
>
> -Yonik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to