On 12/1/10, Ian Lea <ian....@gmail.com> wrote:
> It's probably this line:
>
> Directory.copy(ramDir, FSDirectory.open(indexDir), false); // 3
>
> the javadocs say
>
> Copy contents of a directory src to a directory dest. If a file in src
> already exists in dest then the one in dest will be blindly
> overwritten.
>
> I don't think you gain anything by using an intermediate RAMDirectory
> - try just using a standard file based IndexWriter, making sure you
> pass false for the create argument except when you want to start a new
> index.
>
> --
> Ian.
>

yes you're right.I failed to notice that.thank you.
anyhow the inclusion of RAMDirectory is just for an analysis though. I
will get rid of it in real life implementation of course. :-)

-- 
http://jacobian.web.id

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to