lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Solr custom plugins: is it possible to have them persistent?
Date Tue, 30 Aug 2011 11:14:22 GMT
Why doesn't the singleton approach we talked about a few
days ago do this? It would create the object the first
time you asked for it, and return you the same one thereafter....


On Mon, Aug 29, 2011 at 11:04 AM, samuele.mattiuzzo <> wrote:
> it's how i'm doing it now... but i'm not sure i'm placing the objects into
> the right place
> significant part of my code here :
> (i've omitted the methods implementations since are pretty long)
> inside the method setLocation, i create the connection to mysql database
> inside the method setFieldPosition, i create the categorization object
> Then i started thinking i was creating and deleting those objects locally
> everytime solr reads a document to index. So, where should i put them?
> inside the tothegocustom class constructor, after the super call?
> I'm asking this because i'm not sure if my custom updaterequestprocessor is
> created once or for everydocument parsed (i'm still learning solr, but i
> think i'm getting into it, bits per bits!)
> Thanks again!
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

View raw message