Hi,

The Order BY will only work on the context node and its values.  So, say xpath 
was pulling nodes like:

//root/node1/node2/node3

in my experience, you can only sort on values in node3, but not node1 or node2. 
 The caveat being that that has been my experience.  Perhaps I've missed 
something.

Otherwise, yes typically it will pull the nodes in tree order (again, AFAIK).  
Often, we've had to sort the nodes using JSP comparators after extracting them 
because we actually wanted to sort on a parent context node value.

Mike D. Jones

> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 09, 2008 9:20 AM
> To: [email protected]
> Subject: [magnolia-user] Magnolia default search order
>
>
> Hi,
>
> i try to find out in what order magnolia returns the searchresults, if
> i
> just use the default serach implementation.
>
> It doesnt seem to be sorted by jcr:score...
>
> Has somebody any experiences on that?
> Does the default order mirror the tree appearance of contents?
>
>
> thx in advance
>
> rainer
>
> PS. Is it possible that the ORDER BY clause in a query doesnt work when
> using the XPATH query syntax?
>
>
>
>
> --
> View this message in context: http://www.nabble.com/Magnolia-default-
> search-order-tp17732637p17732637.html
> Sent from the Magnolia - User mailing list archive at Nabble.com.
>
>
> ----------------------------------------------------------------
> for list details see
> http://documentation.magnolia.info/
> ----------------------------------------------------------------

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to