You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Noble Paul നോബിള് नोब्ळ् <no...@gmail.com> on 2008/03/26 15:18:49 UTC
Solr commits automatically on appserver shutdown
hi,
If my appserver fails during an update or if I do a planned shutdown
without wanting to commit my changes Solr does not allow it?.
It commits whatever unfinished changes.
Is it by design?
Can I change this behavior?
--Noble
Re: Solr commits automatically on appserver shutdown
Posted by Yonik Seeley <yo...@apache.org>.
On Fri, Mar 28, 2008 at 2:05 PM, Noble Paul നോബിള് नोब्ळ्
<no...@gmail.com> wrote:
> hi,
> I am willing to work on this if you can give me some pointers as to
> where to start?
DirectUpateHandler2 implements it's own duplicates removal, which is
no longer necessary.
-Yonik
Re: Solr commits automatically on appserver shutdown
Posted by Noble Paul നോബിള് नोब्ळ् <no...@gmail.com>.
hi,
I am willing to work on this if you can give me some pointers as to
where to start?
On Thu, Mar 27, 2008 at 9:48 AM, Yonik Seeley <yo...@apache.org> wrote:
> On Thu, Mar 27, 2008 at 12:11 AM, Noble Paul നോബിള് नोब्ळ्
>
> <no...@gmail.com> wrote:
>
> > Can I make an API call to remove the stale indexsearcher so that the
> > documents do not get committed?
> >
> > Basically what I need is a 'rollback' feature
>
> This should be possible when Solr starts using Lucene's update,
> delete, and deleteByQuery features on the IndexWriter.
>
> -Yonik
>
--
--Noble Paul
Re: Solr commits automatically on appserver shutdown
Posted by Yonik Seeley <yo...@apache.org>.
On Thu, Mar 27, 2008 at 12:11 AM, Noble Paul നോബിള് नोब्ळ्
<no...@gmail.com> wrote:
> Can I make an API call to remove the stale indexsearcher so that the
> documents do not get committed?
>
> Basically what I need is a 'rollback' feature
This should be possible when Solr starts using Lucene's update,
delete, and deleteByQuery features on the IndexWriter.
-Yonik
Re: Solr commits automatically on appserver shutdown
Posted by Noble Paul നോബിള് नोब्ळ् <no...@gmail.com>.
Can I make an API call to remove the stale indexsearcher so that the
documents do not get committed?
Basically what I need is a 'rollback' feature
--Noble
On Wed, Mar 26, 2008 at 9:08 PM, Yonik Seeley <yo...@apache.org> wrote:
>
> On Wed, Mar 26, 2008 at 10:18 AM, Noble Paul നോബിള് नोब्ळ्
> <no...@gmail.com> wrote:
> > If my appserver fails during an update or if I do a planned shutdown
> > without wanting to commit my changes Solr does not allow it?.
> > It commits whatever unfinished changes.
> > Is it by design?
> > Can I change this behavior?
>
> You can't currently avoid it.
> With the newer changes in Lucene though, it should be possible I think.
>
> -Yonik
>
Re: Solr commits automatically on appserver shutdown
Posted by Yonik Seeley <yo...@apache.org>.
On Wed, Mar 26, 2008 at 10:18 AM, Noble Paul നോബിള് नोब्ळ्
<no...@gmail.com> wrote:
> If my appserver fails during an update or if I do a planned shutdown
> without wanting to commit my changes Solr does not allow it?.
> It commits whatever unfinished changes.
> Is it by design?
> Can I change this behavior?
You can't currently avoid it.
With the newer changes in Lucene though, it should be possible I think.
-Yonik