HI.

Separate from language support, you can specify the collation to use on
specific string  indexes.

https://docs.marklogic.com/guide/search-dev/encodings_collations

In my opinion, This is really the magic needed for granular control sorting.

As well as defaults, you can define the collation on the index and then
refer to a specific collation in your search.

Let me know if this helps.  Otherwise, provide an XML sample and how you
want it sorted.  Then there will be enough information for someone to
provide a proper sample.

Kind Regards,
David Ennis


On 10 June 2014 12:16, Ashish Bhardwaj <[email protected]> wrote:

> Hi,
>
> Can anyone tell me what are the ways of doing a language specific sorting
> on a particular data using Marklogic XQuery?
>
> I am new to MarkLogic and have gone through a lot of documentation around
> collations in Marklogic but how to run a query which can do language
> specific sorting is something which is nowhere mentioned in documentation.
> I would appreciate if someone can give me a few examples.
>
> Thanks,
> Ashish
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to