solr commit command questions

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

solr commit command questions

oleg_gnatovskiy
Hello. I was wondering what happens when an add command is done without a commit command. Is there any way to roll back?
Reply | Threaded
Open this post in threaded view
|

Re: solr commit command questions

Mike Klaas
On 3-Apr-08, at 10:04 AM, oleg_gnatovskiy wrote:
>
> Hello. I was wondering what happens when an add command is done  
> without a
> commit command. Is there any way to roll back?

No, there isn't (unless you've taken a snapshot of the index using  
snapshooter).

The main problem is that there is no way to "undelete" a document in  
lucene, so this might be impossible until lucene has more transaction  
support.

-Mike

Reply | Threaded
Open this post in threaded view
|

Re: solr commit command questions

oleg_gnatovskiy
In reply to this post by oleg_gnatovskiy
So, what is the point of the commit?
oleg_gnatovskiy wrote
Hello. I was wondering what happens when an add command is done without a commit command. Is there any way to roll back?
Reply | Threaded
Open this post in threaded view
|

Re: solr commit command questions

Leonardo Santagada

On 04/04/2008, at 20:24, oleg_gnatovskiy wrote:
>
> So, what is the point of the commit?


I always tought about it... this should have been named flush as it is  
on xapian... it has nothing to do with databases commits and the data  
will end up in the index one way or the other.

--
Leonardo Santagada




Reply | Threaded
Open this post in threaded view
|

Re: solr commit command questions

Mike Klaas
In reply to this post by oleg_gnatovskiy
On 4-Apr-08, at 4:24 PM, oleg_gnatovskiy wrote:
>
> So, what is the point of the commit?

It makes the data you have updated since last commit visible to the  
searchers.

-Mike