Hi,
I am actually running a search query to retrieve a set of documents from a
directory based on a keyword. The query is executed successfully but the result
sets are repeating.
Here is the query and the results are pasted below.
Can you suggest me a method to obtain unique values by avoiding redundancy in
the results, I even tried using distinct-nodes() still the same problem
persists.
for $x in cts:search(//para, cts:or-query(("from",
cts:directory-query(("/book/sports/", "/book/business/"), "1"))))
return <a>{base-uri(distinct-nodes($x))}</a>
Search Result:
<a>/Book/business/Media story/Rational Software_doc.xml</a>
<a>/Book/business/Media story/Rational Software_doc.xml</a>
<a>/Book/business/Media story/Rational Software_doc.xml</a>
<a>/Book/business/Media story/Rational Software_doc.xml</a>
<a>/Book/business/Media story/Rational Software_doc.xml</a>
<a>/Book/business/Media story/Rational Software_doc.xml</a>
<a>/Book/business/XBox time/Rational Software_doc.xml</a>
<a>/Book/business/XBox time/Rational Software_doc.xml</a>
<a>/Book/business/XBox time/Rational Software_doc.xml</a>
<a>/Book/business/XBox time/Rational Software_doc.xml</a>
<a>/Book/business/XBox time/Rational Software_doc.xml</a>
<a>/Book/business/XBox time/Rational Software_doc.xml</a>
<a>/Book/business/Fall of Delhi Metro/MainStory_doc.xml</a>
<a>/Book/business/Fall of Delhi Metro/MainStory_doc.xml</a>
<a>/Book/business/Current Scenario/Rational Software_doc.xml</a>
<a>/Book/business/Current Scenario/Rational Software_doc.xml</a>
<a>/Book/business/Current Scenario/Rational Software_doc.xml</a>
<a>/Book/business/Current Scenario/Rational Software_doc.xml</a>
<a>/Book/business/Current Scenario/Rational Software_doc.xml</a>
<a>/Book/business/Current Scenario/Rational Software_doc.xml</a>
<a>/Archives/Rational Software_doc_xhtml.xml</a>
<a>/Archives/Rational Software_doc_xhtml.xml</a>
<a>/Archives/Rational Software_doc_xhtml.xml</a>
<a>/Archives/Rational Software_doc_xhtml.xml</a>
<a>/Archives/Rational Software_doc_xhtml.xml</a>
<a>/Archives/Rational Software_doc_xhtml.xml</a>
Regards,
Vivek N
________________________________
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE
COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the
sender by email and delete all copies; your cooperation in this regard is
appreciated.
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general