lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Nigl <matthew.n...@gmail.com>
Subject Re: Does the SolrQuery class support 'inc' command?
Date Wed, 15 Oct 2014 15:42:01 GMT
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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message