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
