jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: ORDER BY clause in XPath Query using Magnolia
Date Thu, 14 Dec 2006 09:44:16 GMT
Rainer wrote:
> i am trying to get a search result, that is ordered by "modificationDate" or by 
> relevance... (one way would make me happy)
> Magnolia search is generating e.g. the following query:
> //*[@jcr:primaryType='mgnl:hierarchyNode']/*/*[jcr:contains(., 'foooooo')]

to get the nodes ordered by modification date append:

order by @modificationDate

to get the nodes by relevance:

order by @jcr:score


View raw message