Re: Partial Field Update "removeregex" Command

2016-12-07 Thread Karthik Ramachandran
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 
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
>


Partial Field Update "removeregex" Command

2016-12-07 Thread Richard Bergmann
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