I should add that I am able define range-index and do cts:element-range-query 
without namespace.


However following kind of facet does NOT work:

  <constraint name="doctypes">
    <range type="xs:int">
      <element ns=" " name="type"/>
        <bucket name="typeA"...




-Mehul.



-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Shah, Mehul 
(LNG-NPV)
Sent: Tuesday, October 05, 2010 11:42 AM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] no namespace and range index

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.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to