Yes, that is what I tried to say right after the payload snippet.  I cut it
down for readability, but it does contain the 4 items in the array.

The error was somewhere else (between my chair and my keyboard), as
explained in my own response.

Thank you Jim,

-- 
Florent Georges
H2O Consulting
http://h2o.consulting/


On 21 September 2017 at 13:13, Jim Fuller wrote:

> to be clear - there are no 'add/remove' PATCH like semantics anywhere in
> the REST Management API ... whatever you put in the payload will be in the
> properties afterwards ... eg. your script needs to conflate all existing
> path-range-index with the new and send all that.
>
> for your example I would expect range-path-index array to have 4 member.
>
> hth, J
> ------------------------------
> *From:* [email protected] <
> [email protected]> on behalf of Florent Georges <
> [email protected]>
> *Sent:* 21 September 2017 13:07:11
> *To:* MarkLogic Developer Discussion
> *Subject:* [MarkLogic Dev General] Management API: update path range index
>
> Hi,
>
> I want to update the path range indexes on a database via the Management
> API.  So I send a PUT to /databases/xxx/properties with the following
> content:
>
>     { "range-path-index": [{
>         "scalar-type": "date",
>         "range-value-positions": false,
>         "invalid-values": "reject",
>         "collation": "",
>         "path-expression": "xxx/xxx"
>     }]}
>
> There are actually 4 objects in the array, each with a different path.  2
> of them have already be created, I want to add the other 2 (so I update the
> entire property to the total 4 indexes).  This is the same strategy I use
> for other range indexes.
>
> I receive a ADMIN-DUPLICATECONFIGITEM error:
>
>     Database resource 'xxx' already contains 'range-path-index'
>
> Any idea?  Isn't it possible to update the path range indexes?  Should it
> be done differently?
>
> Regards,
>
> --
> Florent Georges
> H2O Consulting
> http://h2o.consulting/
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
> --
> <http://developer.marklogic.com/mailman/listinfo/general>
> Florent Georges
> <http://developer.marklogic.com/mailman/listinfo/general>
> http://fgeorges.org/
> http://h2o.consulting/ - New website!
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to