[prev in list] [next in list] [prev in thread] [next in thread] 

List:       solr-user
Subject:    [SOLVED] Re: Does the SolrQuery class support 'inc' command?
From:       Aaron Lewis <the.warl0ck.1989 () gmail ! com>
Date:       2014-10-16 1:01:34
Message-ID: CAJZVxR=X6nDzkOutbKTA7_WfxPymEcKtT+kPR=x_rmSgBLODnQ () mail ! gmail ! com
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic