Hi Jakob, You need to create a Path Namespace for your prefix, then you can use that prefix in your path index. Here is the procedure:
http://docs.marklogic.com/guide/admin/range_index#id_54948 -Danny From: [email protected] [mailto:[email protected]] On Behalf Of Jakob Fix Sent: Wednesday, February 20, 2013 1:50 PM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] how to declare a namespace for a range path index? Hi, I'm trying to create a range path index using a namespace prefix which should be possible. There doesn't seem to be a place to define the namespace for the element(s). Trying "/oe:item/@type" returns this error in the admin interface: Invalid input: Undefined namespace prefixes: oe. I tried the clark notation (you never know): /{http://www.oecd.org/metapub/oecdOrg/ns/}item/@type<http://www.oecd.org/metapub/oecdOrg/ns/%7ditem/@type> which returns another error message: Invalid input: XDMP-UNINDEXABLEPATH, invalid path expression. Running this script https://gist.github.com/jfix/4999929 also returns an error (with or without the namespace declaration): ADMIN-BADPATHNAMESPACE: (err:FOER0000) Undefined path namespace(s): oe. Quite obviously, there must be a way to do this, but I can't seem to find it. Thanks for your help. cheers, Jakob.
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
