Document order within a document is as defined by the XQuery standard. Between documents it is undefined. In MarkLogic it is based on an internal document id. You should treat it as essentially random.
//Mary On Aug 9, 2016 2:39 AM, Prakashkumar Patel <[email protected]> wrote: Hi Mary, Could you please explain how ML infers document order with an example if possible? What I am not able to get is - suppose I have ingested 100 docs in ML. How ML will assign/decide document order(if there is any algorithm or logic) to/for each of them? Thanks, Prakash -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mary Holstege Sent: Monday, August 08, 2016 9:10 PM To: [email protected] Subject: Re: [MarkLogic Dev General] Secondary Sort for documents with same score On Mon, 08 Aug 2016 07:59:10 -0700, Prakashkumar Patel <[email protected]> wrote: > Hi, > > We are using score-simple method for score calculation. We are getting > multiple documents with same score in result. Do we know what is the > secondary sorting algorithm that ML uses in such tie situation where > two or more documents have same scores? By default it would be document order. Across documents that is, from a user point of view, random but consistent. You can use the cts:order options to specify something different. See the documentation on cts:search[1] //Mary [1] http://docs.marklogic.com/undefined/cts:search _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
