now why it happens and this would confirm
>> or
>> eliminate one possible cause.
>>
>> > -Original Message-
>> > From: Michel Blase [mailto:mblas...@gmail.com]
>> > Sent: Friday, May 18, 2012 1:49 PM
>> > To: java-user@lucene.apache.org
>&
l Blase [mailto:mblas...@gmail.com]
> > Sent: Friday, May 18, 2012 1:49 PM
> > To: java-user@lucene.apache.org
> > Subject: Re: old fashioned."Too many open files"!
> >
> > but commit after each insert should be really expensive and
> > unneces
this would confirm or
eliminate one possible cause.
> -Original Message-
> From: Michel Blase [mailto:mblas...@gmail.com]
> Sent: Friday, May 18, 2012 1:49 PM
> To: java-user@lucene.apache.org
> Subject: Re: old fashioned."Too many open files"!
>
> but
riginal Message-
> > From: Michel Blase [mailto:mblas...@gmail.com]
> > Sent: Friday, May 18, 2012 1:24 PM
> > To: java-user@lucene.apache.org
> > Subject: Re: old fashioned."Too many open files"!
> >
> > also.my problem is indexing!
> >
&g
ubject: Re: old fashioned."Too many open files"!
>
> also.my problem is indexing!
>
> Preparation:
>
> private void SetUpWriters() throws Exception {
> Set set = IndexesPaths.entrySet();
> Iterator i = set.iterator();
>
> while(i
also.my problem is indexing!
Preparation:
private void SetUpWriters() throws Exception {
Set set = IndexesPaths.entrySet();
Iterator i = set.iterator();
while(i.hasNext()){
Map.Entry index = (Map.Entry)i.next();
int id = (Integer)index.getKey()
: the point is that I keep the readers open to share them across search. Is
: this wrong?
your goal is fine, but where in your code do you think you are doing that?
I don't see any readers ever being shared. You open new ones (which are
never closed) in every call to getSearcher()
: > >
Thanks Ian,
the point is that I keep the readers open to share them across search. Is
this wrong?
On Fri, May 18, 2012 at 9:58 AM, Ian Lea wrote:
> You may need to cut it down to something simpler, but I can't see any
> reader.close() calls.
>
>
> --
> Ian.
>
>
> On Fri, May 18, 2012 at 5:47 P
You may need to cut it down to something simpler, but I can't see any
reader.close() calls.
--
Ian.
On Fri, May 18, 2012 at 5:47 PM, Michel Blase wrote:
> This is the code in charge of managing the Lucene index. Thanks for your
> help!
>
>
>
> package luz.aurora.lucene;
>
> import java.io.File
This is the code in charge of managing the Lucene index. Thanks for your
help!
package luz.aurora.lucene;
import java.io.File;
import java.io.IOException;
import java.util.*;
import luz.aurora.search.ExtendedQueryParser;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analy
Post complete code. You are not closing the objects (IndexWriter / Index
Searcher) properly.
Regards
Aditya
www.findbestopensource.com
On Fri, May 18, 2012 at 6:51 AM, Michel Blase wrote:
> Hi all,
>
> I have few problems Indexing. I keep hitting "Too many open files". It
> seems like Lucene i
11 matches
Mail list logo