Mixing adds, deletes and commit in the same message

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Mixing adds, deletes and commit in the same message

Leonardo Santagada
I tried to put some adds and deletes in the same request to solr but  
it didn't work, have I done something wrong or this is really not  
suported?

This is one example:

<add>
        <doc>
                <field name="kind">document</field>
                <field name="uid">one9a10b11c12d</field>
                <field name="title">Test Document</field>
        </doc>
</add>
<commit/>


Thanks in advance
[]'s
--
Leonardo Santagada



Reply | Threaded
Open this post in threaded view
|

Re: Mixing adds, deletes and commit in the same message

Mike Klaas
On 3-Jan-08, at 11:38 AM, Leonardo Santagada wrote:

> I tried to put some adds and deletes in the same request to solr  
> but it didn't work, have I done something wrong or this is really  
> not suported?

It isn't supported.

-Mike
Reply | Threaded
Open this post in threaded view
|

Re: Mixing adds, deletes and commit in the same message

Ryan McKinley
You can commit after a update command by adding a request parameter:

/update?commit=true
POST: your xml <add>...

ryan


Mike Klaas wrote:

> On 3-Jan-08, at 11:38 AM, Leonardo Santagada wrote:
>
>> I tried to put some adds and deletes in the same request to solr but
>> it didn't work, have I done something wrong or this is really not
>> suported?
>
> It isn't supported.
>
> -Mike
>