Pragya
Argument 1, $start is defined as below
$start
A starting value. Return only this value and following values. If the empty
string, return all values. If the parameter is not in the lexicon, then it
returns the values beginning with the next value.
So cts:uris returns every uri that alphabetically succeeds the value supplied.
If you want what's in /docs/ only, you're probably best supplying
cts:directory-query("/docs/") as the third argument to cts:uris - this
argument constrains the results by query.
Ken Tune
From: [email protected]
[mailto:[email protected]] On Behalf Of Kapoor, Pragya
Sent: 18 January 2016 11:40
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] cts:uris
Hi,
When I am querying the DB (uri lexicon enable) using cts:uris("/docs/").
I am getting uris starting from /docs/ which is correct , but why I am getting
the below uris:
/documents/Bilateral Form.0000031-csa.xml
string <http://localhost:8000/qconsole/>
/documents/Bilateral Form.0000033-CSA US94docx.xml
string <http://localhost:8000/qconsole/>
/documents/Bilateral Form.0000621 CSA GB95docx.xml
string <http://localhost:8000/qconsole/>
/documents/CSA_0000038.xml
string <http://localhost:8000/qconsole/>
/documents/DataModel_MAG0000031.xml
string <http://localhost:8000/qconsole/>
/documents/MAG0000033.xml
string <http://localhost:8000/qconsole/>
/documents/MAG0000038.xml
string <http://localhost:8000/qconsole/>
/foo/bar/baz.xml
string <http://localhost:8000/qconsole/>
/foo/bar/baz_xml_versions/
string <http://localhost:8000/qconsole/>
/foo/bar/baz_xml_versions/1-baz.xml
string <http://localhost:8000/qconsole/>
/foo/bar/baz_xml_versions/2-baz.xml
string <http://localhost:8000/qconsole/>
/foo/bar/baz_xml_versions/3-baz.xml
string <http://localhost:8000/qconsole/>
/metadata/MAG_0000006.xml
string <http://localhost:8000/qconsole/>
/misc/DF2Config.xml
string <http://localhost:8000/qconsole/>
/misc/DF2Label.xml
string <http://localhost:8000/qconsole/>
/misc/DocEvents.xml
string <http://localhost:8000/qconsole/>
/misc/DocList.xml
string <http://localhost:8000/qconsole/>
/misc/DocListExtra.xml
string <http://localhost:8000/qconsole/>
/misc/DocLoadOperations.xml
string <http://localhost:8000/qconsole/>
/misc/EMIRLabel.xml
string <http://localhost:8000/qconsole/>
/misc/Groups.xml
string <http://localhost:8000/qconsole/>
/misc/Enumerations.xsd
string <http://localhost:8000/qconsole/>
/misc/PhysicalDoclist.xml
string <http://localhost:8000/qconsole/>
/misc/ReportSpreadsheet.xml
string <http://localhost:8000/qconsole/>
/misc/ReportSpreadsheetSelections_TEST.xml
string <http://localhost:8000/qconsole/>
/misc/SavedQueries.xml
string <http://localhost:8000/qconsole/>
/misc/SavedTextSearches.xml
string <http://localhost:8000/qconsole/>
/misc/SiteConfig.xml
string <http://localhost:8000/qconsole/>
/misc/UserLogs.xml
string <http://localhost:8000/qconsole/>
/preprossesing/docs/0001-4043.xml
string <http://localhost:8000/qconsole/>
fragmented.xml
string <http://localhost:8000/qconsole/>
http://marklogic.com/dls/retention-rules.xml
Please let me know, what I am doing incorrectly.
Thanks
Pragya
"This e-mail and any attachments transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential , proprietary or
privileged information. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the original message. Any
unauthorized review, use, disclosure, dissemination, forwarding, printing or
copying of this e-mail or any action taken in reliance on this e-mail is
strictly prohibited and may be unlawful."
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general