False alert... This is a classic example of writing about the problem helped me solving it, right after I pressed the send button.
For the record: from the error message, I thought the error was about the entire property (the whole array of indexes), but it was actually referring to one entry of it. I made a typo in the paths, and 2 entries were identical, hence the error. Sorry for the noise. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 21 September 2017 at 13:07, Florent Georges wrote: > 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
