Andreas Hubmer <andreas.hub...@ebcont.com> writes: > There is a problem with the configuration of range-element-indexes. > According to the documentation it should be possible to define "one or > more localnames" within one range-element-index object. > > Partial JSON config for more than one localname: > "range-element-index" : [{ "scalar-type" : "string", "namespace-uri" : > "http://foo", "localname" : ["an_entry", "another_entry"], "collation" > : "http://marklogic.com/collation/de", "range-value-positions" : > false, "invalid-values" : "reject" }] > > When I submit more than one localname I get the following error: > Info: Manage: XDMP-AS: (err:XPTY0004) $localname as xs:string -- > Invalid coercion: <localname > xmlns="http://marklogic.com/manage/database/properties">created > replace deleted</localname> as xs:string > > In "phrase-through" it works as expected. Partial JSON config: > "phrase-through" : [{ > "namespace-uri" : "http://www.w3.org/1999/xhtml", > "localname" : ["a", "abbr"] > }]
That sounds like a bug to me. You can, as a workaround, send multiple index objects, one for each local name. I've created a bug on our end for you. Be seeing you, norm -- Norman Walsh Lead Engineer MarkLogic Corporation Phone: +1 512 761 6676 www.marklogic.com _______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general