Re: IndexWriter.optimize() is removed in 4.0?

2013-01-23 Thread Denis Bazhenov
All the given reasons applies to some systems but not to all of them. But distributed systems (with index being built on dedicated machine) with index warm up on index reopen can successfully mitigate both IO and cold-cache overhead. On Jan 24, 2013, at 8:58 AM, Steve Rowe wrote: > Hi Sai, >

Re: IndexWriter.optimize() is removed in 4.0?

2013-01-23 Thread Steve Rowe
Hi Sai, Check out Simon Willnauer's blog post about this: Steve On Jan 23, 2013, at 4:49 PM, saisantoshi wrote: > There is no optimize() method in 4.0. I looked at the 3.6 docs and it did > mention the followin

IndexWriter.optimize() is removed in 4.0?

2013-01-23 Thread saisantoshi
There is no optimize() method in 4.0. I looked at the 3.6 docs and it did mention the following below. Does the following below mean that we no longer need this method and should not be used anymore. Is there any supplement method that we need to use as it is deprecated as of version 3.6.0 /* Depr

Re: IndexWriter.optimize not using it breaks my test case :(

2011-06-23 Thread Ian Lea
that optimize does do is clear out deleted documents. Could that be relevant to your test failure? If so, there is an expungeDeletes() method you could maybe use instead. -- Ian. On Wed, Jun 22, 2011 at 8:24 PM, Hiller, Dean x66079 wrote: > I read that in a lot of cases IndexWriter.optimi

IndexWriter.optimize not using it breaks my test case :(

2011-06-22 Thread Hiller, Dean x66079
I read that in a lot of cases IndexWriter.optimize does not have to be called. I then deleted it and my junit test case broke because results were coming back in the query that were not supposed to be coming back :(. I think everything is single tested. Maybe I should write a more raw junit

Re: Slowing down (rate-limiting/throttling) IndexWriter.optimize

2008-08-23 Thread Michael McCandless
I think IO throttling would be a useful built-in feature. I imagine many people are actually uknowingly affected by this, when they make changes to their index on the same machine that also does simultaneous searching. It's not only optimize() that will cause this, but also normal flushin

Slowing down (rate-limiting/throttling) IndexWriter.optimize

2008-08-20 Thread Halsey, Stephen
Hi, We are using lucene to index a large number of documents (millions) and we currently optimize half the index in the background every 2 days, to stop it becoming too fragmented. This takes about an hour and we are finding during this time searches are slowed down dramatically on that machine.

IndexWriter.optimize()

2008-01-15 Thread Cam Bazz
Hello, I have been running some experiments on lucene. To speed up index time, I have disabled autocommit, and I flush the indexwriter each 512 objects. So far I have tried with 256,512,1024,and 2048 and I have seen a really incredible speed difference indexing. However, if I the time required to

Re: IndexWriter.Optimize() is too slow and IOException! How Can I do?

2007-06-08 Thread Erick Erickson
First, when asking a new question, it's best to start a new subject. Your question has nothing to do with the rest of the thread That said, you want to create a Reader to pass along. I'd think about doing this by subclassing your MSWord class from the Reader class and providing the necessary

Re: IndexWriter.Optimize() is too slow and IOException! How Can I do?

2007-06-08 Thread jim shirreffs
I am trying to index msword documents. I’ve got things working but I do not think I am doing things properly. To index msword docs I use an extractor to extract the text. Then I write the text to a .txt file and index that using an HTLMDocument object. Seems to me that since I have the text

Re: IndexWriter.Optimize() is too slow and IOException! How Can I do?

2007-06-06 Thread James liu
U should split your index. large index will cause query speed, optimize speed when u index. 2007/6/7, 童小军 <[EMAIL PROTECTED]>: my indexfile to 8G when I optionze() the index.program is too slow . and some time IOException. And use TOO memory . xiaojun tong 010-64489518-613 [EMAIL PROTEC

IndexWriter.Optimize() is too slow and IOException! How Can I do?

2007-06-06 Thread 童小军
my indexfile to 8G when I optionze() the index.program is too slow . and some time IOException. And use TOO memory . xiaojun tong 010-64489518-613 [EMAIL PROTECTED] www.feedsky.com

Re: IOException: Access is denied from IndexWriter.Optimize

2006-12-05 Thread Michael McCandless
[EMAIL PROTECTED] wrote: Thank you for quick and detailed answer. In this system multiple threads will, occasionally, try to write and/ or read the same index, hence the pause waiting for the lock. This is not a good way to implement it and was done as a temp solution for debug purposes only.

Re: IOException: Access is denied from IndexWriter.Optimize

2006-12-05 Thread trond . lindanger
Thank you for quick and detailed answer. In this system multiple threads will, occasionally, try to write and/ or read the same index, hence the pause waiting for the lock. This is not a good way to implement it and was done as a temp solution for debug purposes only. Multiple processes may stil

Re: IOException: Access is denied from IndexWriter.Optimize

2006-12-05 Thread Michael McCandless
Sorry, I allowed my silly SPAM filter to pollute the subject line. I'm fixing that in this reply so please reply to this one :) Mike Michael McCandless wrote: [EMAIL PROTECTED] wrote: Hi, In my test case, four Quartz jobs are starting each third minute storing records in a database followed b

Re: {SPAM 05.2 _____} IOException: Access is denied from IndexWriter.Optimize

2006-12-05 Thread Michael McCandless
[EMAIL PROTECTED] wrote: Hi, In my test case, four Quartz jobs are starting each third minute storing records in a database followed by an index update. After doing a test run over a period of 16 hours, I got this exception after 10 hours: java.io.IOException: Access is denied at java

Re: IOException: Access is denied from IndexWriter.Optimize

2006-12-05 Thread Michael McCandless
[EMAIL PROTECTED] wrote: Forgot something... Also I got this exception, which may be related: java.io.IOException: Cannot delete C:\dknewscenter\2\_5d.cfs at org.apache.lucene.store.FSDirectory.create(FSDirectory.java:319) at org.apache.lucene.store.FSDirectory.getDirectory(FSD

Re: IOException: Access is denied from IndexWriter.Optimize

2006-12-05 Thread trond . lindanger
Forgot something... Also I got this exception, which may be related: java.io.IOException: Cannot delete C:\dknewscenter\2\_5d.cfs at org.apache.lucene.store.FSDirectory.create(FSDirectory.java:319) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:208)

IOException: Access is denied from IndexWriter.Optimize

2006-12-05 Thread trond . lindanger
Hi, In my test case, four Quartz jobs are starting each third minute storing records in a database followed by an index update. After doing a test run over a period of 16 hours, I got this exception after 10 hours: java.io.IOException: Access is denied at java.io.RandomAccessFile.writeB

Re: IndexWriter.optimize() need to much time.

2005-10-05 Thread Doug Cutting
Eric Louvard wrote: my problem is that IndexWriter.optimize() take 20 minutes. OK it is not a lot of time, but I can't allow me to block the system such a long time :-(. If you're worried about blocking, queue changes to the index and have a separate thread which processes the que

Re: IndexWriter.optimize() need to much time.

2005-10-05 Thread Volodymyr Bychkoviak
t: Re: IndexWriter.optimize() need to much time. Of course I can acces IndexReader, but I need to acces IndexWriter during optimization. If I am using a 'temp-index' I need to merge it with the optimized index how can I do it ? Thanks. Éric Mordo, Aviran (EXP N-NANNATEK) wrote: The ind

RE: IndexWriter.optimize() need to much time.

2005-10-05 Thread Mordo, Aviran (EXP N-NANNATEK)
ginal Message- From: Eric Louvard [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 10:27 AM To: java-user@lucene.apache.org Subject: Re: IndexWriter.optimize() need to much time. Of course I can acces IndexReader, but I need to acces IndexWriter during optimization. If I am using a

Re: IndexWriter.optimize() need to much time.

2005-10-05 Thread Volodymyr Bychkoviak
CTED] Sent: Wednesday, October 05, 2005 10:10 AM To: java-user@lucene.apache.org Subject: IndexWriter.optimize() need to much time. Hello, my problem is that IndexWriter.optimize() take 20 minutes. OK it is not a lot of time, but I can't allow me to block the system such a long time :-(. I do

Re: IndexWriter.optimize() need to much time.

2005-10-05 Thread Eric Louvard
timization, you should not have any problem with that. Aviran http://www.aviransplace.com -Original Message- From: Eric Louvard [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 10:10 AM To: java-user@lucene.apache.org Subject: IndexWriter.optimize() need to much time.

Re: IndexWriter.optimize() need to much time.

2005-10-05 Thread Cyril Barlow
3:10 PM Subject: IndexWriter.optimize() need to much time. > Hello, > > my problem is that IndexWriter.optimize() take 20 minutes. OK it is not > a lot of time, but I can't allow me to block the system such a long time > :-(. > I don't know when I can take the time for

RE: IndexWriter.optimize() need to much time.

2005-10-05 Thread Mordo, Aviran (EXP N-NANNATEK)
: IndexWriter.optimize() need to much time. Hello, my problem is that IndexWriter.optimize() take 20 minutes. OK it is not a lot of time, but I can't allow me to block the system such a long time :-(. I don't know when I can take the time for optimize(). Has someone allready find a worka

IndexWriter.optimize() need to much time.

2005-10-05 Thread Eric Louvard
Hello, my problem is that IndexWriter.optimize() take 20 minutes. OK it is not a lot of time, but I can't allow me to block the system such a long time :-(. I don't know when I can take the time for optimize(). Has someone allready find a workarround for this problem ? Is it possib