.close();
}
is.close();
}
and everything seems fine now!
Sorry for wasting your time! Hope that my stupidity will help someone else!
Michel
On Fri, May 18, 2012 at 11:30 AM, Michel Blase wrote:
> Ian was right! I didn't notice that before each insert the code was
> performing
n work on a
> scheme (using counters maybe), to do regular commits after every 10/20/100
> documents.
>
> But you can't fix it until you know why it happens and this would confirm
> or
> eliminate one possible cause.
>
> > -Original Message-
> > From: Miche
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
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()
gt; 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;
> > import java.io.IOException
}
On Thu, May 17, 2012 at 10:37 PM, findbestopensource <
findbestopensou...@gmail.com> wrote:
> Post complete code. You are not closing the objects (IndexWriter / Index
> Searcher) properly.
>
> Regards
> Aditya
> www.findbestopensource.com
>
>
> On Fri, May 18, 201