JAVIER | 3 Feb 15:39
Favicon

memory leak

I built clucene for iOS, but I'm having some problems with a
memory leak when updating documents.

I need to add some aditional text to a indexed document, but
the only store of indexed data is lucene.
So, I need to search first for the document, then delete old
document and add new document.

If searcher and writer are opened at the same time, it leaks memory.

¿Any help other than not searching and indexing at the same time?

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
CLucene-developers mailing list
CLucene-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers
Ben van Klinken | 3 Feb 21:49
Picon
Gravatar

Re: memory leak

Which version are you using?

There's an IndexModifier class which helps with these sorts of scenarios

ben

On 4 February 2012 00:39, JAVIER <jalonso@...> wrote:
> I built clucene for iOS, but I'm having some problems with a
> memory leak when updating documents.
>
> I need to add some aditional text to a indexed document, but
> the only store of indexed data is lucene.
> So, I need to search first for the document, then delete old
> document and add new document.
>
> If searcher and writer are opened at the same time, it leaks memory.
>
> ¿Any help other than not searching and indexing at the same time?
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> CLucene-developers mailing list
> CLucene-developers@...
> https://lists.sourceforge.net/lists/listinfo/clucene-developers
(Continue reading)


Gmane