lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yakob <jacob...@opensuse-id.org>
Subject Re: problem with incremental update in lucene
Date Wed, 01 Dec 2010 10:41:49 GMT
On 12/1/10, Ian Lea <ian.lea@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message