lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karthik Ramachandran <mrk...@gmail.com>
Subject Re: Partial Field Update "removeregex" Command
Date Thu, 08 Dec 2016 00:52:13 GMT
if you want to remove all the data in the then use "null" in set

curl . . . -d '[{"id":"docId","someField":{"set",null}}]'

-Karthik

On Wed, Dec 7, 2016 at 1:31 PM, Richard Bergmann <RBERGMANN@colsa.com>
wrote:

> Hello,
>
> I am new to this and have found no examples or guidance on how to use
> "removeregex" to remove (in my case) all entries in a multi-valued field.
>
> The following curl commands work just fine:
>
> curl . . . -d '[{"id":"docId","someField":{"add",["val1","val2"]}}]'
>
> and
>
> curl . . . -d '[{"id":"docId","someField":{"remove",["val1","val2"]}}]'
>
>
> None of the following have any effect, however:
>
> curl . . . -d '[{"id":"docId","someField":{"removeregex","val1"}}]'
>
> curl . . . -d '[{"id":"docId","someField":{"removeregex",".*"}}]'
>
>
> I appreciate your help and hope your answer makes it out on the cloud
> somewhere so others can find the solution.
>
> Regards,
>
> Rich Bergmann
>

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