You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by vasu shah <va...@yahoo.com> on 2006/08/25 01:29:42 UTC
Indexmodifier optimize
Hi,
I added one record to the index and did flush(), optimize() and close() in that order.
I had one index file _twca.cfs. After the inserting the document and doing optimization, I have two index files _twca.cfs and _twcf.cfs (both approx. same size) and deletable file having entry for _twca.cfs.
Can anyone help me what could be the problem.
Thanks,
-Vasu
---------------------------------
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.
Re: Indexmodifier optimize
Posted by Michael McCandless <lu...@mikemccandless.com>.
Chris Hostetter wrote:
> : I added one record to the index and did flush(), optimize() and close() in that order.
> : I had one index file _twca.cfs. After the inserting the document and doing optimization, I have two index files _twca.cfs and _twcf.cfs (both approx. same size) and deletable file having entry for _twca.cfs.
> :
> : Can anyone help me what could be the problem.
>
> this isn't really a problem -- it's the expected behavior in Windows,
> where the OS won't let the JVM dleete files that are open (or if i recall
> collectly: were closed very recently) ... to deal with this problem,
> Lucene makes a note of the file and the next time it's doing
> "housekeeping" it tires again to delete it.
>
> (i don't remember when exactly the housekeeping is, but if someone else
> knows off the top of their head, it would probably be worthwhile to add
> "Why do i have a deletable file after optimizing my index?" to the FAQ
> with an explanation including when exactly Lucene will try again)
I'll update the FAQ with this.
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Indexmodifier optimize
Posted by Chris Hostetter <ho...@fucit.org>.
: I added one record to the index and did flush(), optimize() and close() in that order.
: I had one index file _twca.cfs. After the inserting the document and doing optimization, I have two index files _twca.cfs and _twcf.cfs (both approx. same size) and deletable file having entry for _twca.cfs.
:
: Can anyone help me what could be the problem.
this isn't really a problem -- it's the expected behavior in Windows,
where the OS won't let the JVM dleete files that are open (or if i recall
collectly: were closed very recently) ... to deal with this problem,
Lucene makes a note of the file and the next time it's doing
"housekeeping" it tires again to delete it.
(i don't remember when exactly the housekeeping is, but if someone else
knows off the top of their head, it would probably be worthwhile to add
"Why do i have a deletable file after optimizing my index?" to the FAQ
with an explanation including when exactly Lucene will try again)
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org