Re: code works with 1.3-rc1 but not with 1.3-final??

2004-03-23 Thread Julien Nioche
Or set a big value with minMergeDocs on IndexWriter and keep a low
mergeFactor (ie 10). You'll have a small number of files on your disk and
the indexing should be faster as well.

- Original Message -
From: Matt Quail [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 4:22 AM
Subject: Re: code works with 1.3-rc1 but not with 1.3-final??


 Or use IndexWriter.setUseCompundFile(true) to reduce the number of files
 created by Lucene.


http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/index/IndexWrite
r.html#setUseCompoundFile(boolean)

 =Matt

 Kevin A. Burton wrote:

  Dan wrote:
 
  I have some code that creates a lucene index. It has been working fine
  with lucene-1.3-rc1.jar but I wanted to upgrade to
  lucene-1.3-final.jar. I did this and the indexer breaks. I get the
  following error when running the index with 1.3-final:
 
  Optimizing the index
  IOException: /home/danl001/index-Mar-22-14_31_30/_ni.f43 (Too many
  open files)
  Indexed 884 files in 8 directories
  Index creation took 242 seconds
  %
 
  No... it's you... ;)
 
  Read the FAQ and then run
 
  ulimit -n 100 or so...
 
  You need to increase your file handles.  Chance are you never noticed
  this before but the problem was still present.  If you're on a Linux box
  you would be amazed to find out that you're only about 200 file handles
  away from running out of your per-user quota file quota.
 
  You might have to su as root to change this.. RedHat is more strict
  because it uses the glibc resource restrictions thingy. (who's name
  slips my mind at the moment).
  Debian is configured better here as per defaults.
 
  Also a google query would have solved this for you very quickly ;)..
 
  Kevin
 




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



code works with 1.3-rc1 but not with 1.3-final??

2004-03-22 Thread Dan
I have some code that creates a lucene index. It has been working fine 
with lucene-1.3-rc1.jar but I wanted to upgrade to lucene-1.3-final.jar. 
I did this and the indexer breaks. I get the following error when 
running the index with 1.3-final:

Optimizing the index
IOException: /home/danl001/index-Mar-22-14_31_30/_ni.f43 (Too many open 
files)
Indexed 884 files in 8 directories
Index creation took 242 seconds
%

So it appears the the code that uses 1.3-final breaks on the call to 
optimize(). Does anyone know what is wrong?

Again, the ONLY change between the working version and the version that 
breaks on optimize is the jar file I use. lucene-1.3-rc1.jar works. 
lucene-1.3-final.jar doesnt. Wierd huh?

I've tested this on both Unix (solaris) and on windows. In both cases, 
I'm using jdk 1.4.2_03.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: code works with 1.3-rc1 but not with 1.3-final??

2004-03-22 Thread Kevin A. Burton
Dan wrote:

I have some code that creates a lucene index. It has been working fine 
with lucene-1.3-rc1.jar but I wanted to upgrade to 
lucene-1.3-final.jar. I did this and the indexer breaks. I get the 
following error when running the index with 1.3-final:

Optimizing the index
IOException: /home/danl001/index-Mar-22-14_31_30/_ni.f43 (Too many 
open files)
Indexed 884 files in 8 directories
Index creation took 242 seconds
%

No... it's you... ;)

Read the FAQ and then run

ulimit -n 100 or so...

You need to increase your file handles.  Chance are you never noticed 
this before but the problem was still present.  If you're on a Linux box 
you would be amazed to find out that you're only about 200 file handles 
away from running out of your per-user quota file quota.

You might have to su as root to change this.. RedHat is more strict 
because it uses the glibc resource restrictions thingy. (who's name 
slips my mind at the moment). 

Debian is configured better here as per defaults.

Also a google query would have solved this for you very quickly ;)..

Kevin

--

Please reply using PGP.

   http://peerfear.org/pubkey.asc
   
   NewsMonster - http://www.newsmonster.org/
   
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
  AIM/YIM - sfburtonator,  Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
 IRC - freenode.net #infoanarchy | #p2p-hackers | #newsmonster



signature.asc
Description: OpenPGP digital signature


Re: code works with 1.3-rc1 but not with 1.3-final??

2004-03-22 Thread Matt Quail
Or use IndexWriter.setUseCompundFile(true) to reduce the number of files
created by Lucene.
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/index/IndexWriter.html#setUseCompoundFile(boolean)

=Matt

Kevin A. Burton wrote:

Dan wrote:

I have some code that creates a lucene index. It has been working fine 
with lucene-1.3-rc1.jar but I wanted to upgrade to 
lucene-1.3-final.jar. I did this and the indexer breaks. I get the 
following error when running the index with 1.3-final:

Optimizing the index
IOException: /home/danl001/index-Mar-22-14_31_30/_ni.f43 (Too many 
open files)
Indexed 884 files in 8 directories
Index creation took 242 seconds
%

No... it's you... ;)

Read the FAQ and then run

ulimit -n 100 or so...

You need to increase your file handles.  Chance are you never noticed 
this before but the problem was still present.  If you're on a Linux box 
you would be amazed to find out that you're only about 200 file handles 
away from running out of your per-user quota file quota.

You might have to su as root to change this.. RedHat is more strict 
because it uses the glibc resource restrictions thingy. (who's name 
slips my mind at the moment).
Debian is configured better here as per defaults.

Also a google query would have solved this for you very quickly ;)..

Kevin





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]