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 Aaron Lewis <th...@gmail.com> on 2014/10/15 13:23:39 UTC
Does the SolrQuery class support 'inc' command?
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
Re: Does the SolrQuery class support 'inc' command?
Posted by Matthew Nigl <ma...@gmail.com>.
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 <th...@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
>