lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Lewis <the.warl0ck.1...@gmail.com>
Subject [SOLVED] Re: Does the SolrQuery class support 'inc' command?
Date Thu, 16 Oct 2014 01:01:34 GMT
Thanks Matt. I got it worked with the '<add>' command.

On Wed, Oct 15, 2014 at 11:42 PM, Matthew Nigl <matthew.nigl@gmail.com> wrote:
> Hi Aaron,
>
> I do not believe that there is direct support for atomic updates with this
> API. Other libraries such as Solarium do support this.
>
> However, one option is that you could generate the atomic update XML in
> code and send it via a raw request:
> http://php.net/manual/en/solrclient.request.php
>
> Regards,
> Matt
>
> On 15 October 2014 22:23, Aaron Lewis <the.warl0ck.1989@gmail.com> wrote:
>
>> Hi,
>>
>> I'm trying to do a partial update, according to
>>
>> https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documents
>>
>> I can use 'inc' command to do that, but I couldn't find relevant PHP API
>> here:
>> http://php.net/manual/en/class.solrquery.php
>>
>> Anyone know what function should I use? I tried 'addField' but that
>> would just override existing entry
>>
>> --
>> Best Regards,
>> Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
>> Finger Print:   9F67 391B B770 8FF6 99DC  D92D 87F6 2602 1371 4D33
>>



-- 
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print:   9F67 391B B770 8FF6 99DC  D92D 87F6 2602 1371 4D33

Mime
View raw message