Thanks Jason and Mary for the information. It was helpful.
-Prakash ________________________________________ From: general-boun...@developer.marklogic.com <general-boun...@developer.marklogic.com> on behalf of Jason Hunter <jhun...@marklogic.com> Sent: Thursday, August 11, 2016 8:18 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Secondary Sort for documents with same score You can imagine MarkLogic uses the sorted order of the hash of the URI to determine document order across documents. >From the user perspective this is an order you'll never be able to predict >(which is why Mary said it appears random) but it'll be the same for every run >(which is why Mary said it's consistent, using the technical definition of >that word). -jh- > On Aug 9, 2016, at 7:39 PM, Prakashkumar Patel <prakashkumar.pa...@tcs.com> > 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: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of Mary Holstege > Sent: Monday, August 08, 2016 9:10 PM > To: general@developer.marklogic.com > Subject: Re: [MarkLogic Dev General] Secondary Sort for documents with same > score > > On Mon, 08 Aug 2016 07:59:10 -0700, Prakashkumar Patel > <prakashkumar.pa...@tcs.com> 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 > General@developer.marklogic.com > 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 > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general