[MarkLogic Dev General] no namespace and range index
Shah, Mehul (LNG-NPV)
mehul.shah at lexisnexis.com
Tue Oct 5 08:41:30 PDT 2010
Is it possible to create range index for xml without namespace?
I do not have namespace in xml, and I have no schema defined.
What do I specify in:
In ML Admin > Element range index > namespace uri
In ML Admin > Attribute range index > parent namespace uri and namespace uri
(I tried keeping it blank, which did not work)
For example say I need to create range index for pub element and dt attribute of the same for following:
<doc>
<type dt="1992-12-01">3000</type>
<city>new providence</city>
<body>xyz</body>
</doc>
Later I want to use constraint to create facet based on buckets
<constraint name="doctypes">
<range type="xs:int">
<element ns=" " name="type"/>
<bucket name="typeA"...
(fyi; If I have xmlns="http://a.com" in the xml and constraint with ns=" http://a.com" it works fine)
Thanks,
Mehul.
More information about the General
mailing list