Hi All,
We have a query like this:
path=/content/we-retail
type=cq:Page
fulltext=Men
p.limit=-1
Is there any default algorithm for sorting the results when no orderby is specified.
From the output results we are not able to find any sort criteria.
Any help is appreciated.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
As far as I know, orderby parameter is specified in full-text search query, which means the order in which the search results are returned is not guaranteed to be consistent or predictable.
It may We can see the same results every time because the AEM search engine is returning the results in the same order each time, based on some internal mechanism by this is not reliable. If we need to ensure a specific order of search results, we should always specify an orderby parameter in query.
I never found any article or documentation that says about the default orderby. It could be my limitation.
hi @Sb2512 ,
The index of returned result of the query will differ from instance to instance as it is based on Lucene scores.
Also refer post for reference.
Best Regards,
Milind
Views
Likes
Replies
Views
Likes
Replies