I have documents stored in database in the following format

<record id="245-012"
xmlns="http://marklogic.com/marklogic/schema/somenamespace";>
  <page-list>
       <page num="12">
<page-content header="Header1" page-id="214">
<author>Stanley</author>
<title>Some title</title>
</page-content>
  </page>
  <page num="18">
<page-content header="Header5" page-id="285">
<author>Bob</author>
<title>Some title</title>
</page-content>
  </page>
  <page num="23">
<page-content header="Header1" page-id="214">
<author>Smith</author>
<title>Some title</title>
</page-content>
  </page>
  <page num="28">
<page-content header="Header9" page-id="296">
<author>Jackson</author>
<title>Some title</title>
</page-content>
  </page>
</page-list>
</record>

These documents are fragmented based on the <page>.
Im using cts:element-attribute-value-query for the @page-id in
search:search. Though the @page-id value has duplicate values
(page-id="214"), the query returns it as two separate results. However
i want to fetch only distinct results based on @page-id.

Is there any options available to accomplish this? Im using Marklogic 6.

Regards,
Blessing.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to