Just clarifying : My query was more specific to Solr. I wanted to check if
there are any Solr resources that are session-specific that we need to
release.

*>> I can't understand: do you use several web applications in a same
>> container?
>> Are you trying to close shared SolrCore when one of many users (of
another
>> application) logs off?*
I have only one application that is built on top of Solr. I mentioned
SolrCore in my mail only because that was the only object that I noticed
which had a close() method. I don't intend to do a close() on SolrCore when
a particular user logs out (closes his session)

*> There is no 'logout'. There is no permanent state in Solr beyond the
Lucene
> index. There are caches, but these do not require any termination. The
> Lucene API has very solid self-protection for the indexes and Solr uses
the
> API in the right way.*
I understand Solr application does not have a logout. Please correct me if I
am wrong but you seem to be stating that there is no explicit action
required from our side to release any Solr resources when a user terminates
his/her session of a Solr based application. If that is the case, then my
query is answered.

Thank you all.

Regards
Rahul



On Sun, Aug 23, 2009 at 7:16 AM, Lance Norskog <goks...@gmail.com> wrote:

> Sorry, hit 'send' too soon. You can kill the servlet process, but it is
> much
> better to use the servlet container's shutdown protocol.
>
> On Sat, Aug 22, 2009 at 6:46 PM, Lance Norskog <goks...@gmail.com> wrote:
>
> > There is no 'logout'. There is no permanent state in Solr beyond the
> Lucene
> > index. There are caches, but these do not require any termination. The
> > Lucene API has very solid self-protection for the indexes and Solr uses
> the
> > API in the right way.
> >
> > If you run a Solr distribution in a standard servlet container, you can
> > just use the servlet's shutdown protocol. If you call a commit with
> > waitFlush=true, then do not index any records, you can kill the servlet
> > process.
> >
> >   On Fri, Aug 21, 2009 at 7:45 AM, Fuad Efendi <f...@efendi.ca> wrote:
> >
> >> I can't understand: do you use several web applications in a same
> >> container?
> >> Are you trying to close shared SolrCore when one of many users (of
> another
> >> application) logs off?
> >>
> >> Usually one needs to clean up only user-session specific objects (such
> as
> >> non-persistent shopping cart)...
> >>
> >>
> >> -----Original Message-----
> >> From: Rahul R [mailto:rahul.s...@gmail.com]
> >> Sent: August-21-09 1:20 AM
> >> To: solr-user@lucene.apache.org
> >> Subject: Implementing a logout
> >>
> >> Hello,
> >> Can somebody give me some pointers on the Solr objects I need to clean
> >> up/release while doing a logout on a Solr Application. I find that only
> >> the
> >> SolrCore object has a close() method. I typically do a lot of faceting
> >> queries on a large dataset with my application. I am using Solr 1.3.0.
> >>
> >> Regards
> >> Rahul
> >>
> >>
> >>
> >
> >
> > --
> > Lance Norskog
> > goks...@gmail.com
> >
> >
>
>
> --
> Lance Norskog
> goks...@gmail.com
>

Reply via email to