Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there a simple way to let the user sort the search result by Published date instead of relevance?
Hi Claus
I'm think you can change the sorting in the XSLTsearch.xslt. Find this line (around line 321):
<xsl:sort select="substring-before(substring-after($pageScoreList, concat(';',generate-id(.),'=')),';')" data-type="number" order="descending"/>
I'm pretty sure you can just change this line to something like this:
<xsl:sort data-type="text" select="@updateDate" order="descending" />
I haven't tried it, but I think it will work :)
/Kim A
Kim's advice is exactly what I would try. Basically, you want to ignore all the page ranking and sort on the appropriate field instead (@createDate or @updateDate probably).
Let us know how you get on with it.
cheers,doug.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Sorting search results
Is there a simple way to let the user sort the search result by Published date instead of relevance?
Hi Claus
I'm think you can change the sorting in the XSLTsearch.xslt. Find this line (around line 321):
I'm pretty sure you can just change this line to something like this:
I haven't tried it, but I think it will work :)
/Kim A
Kim's advice is exactly what I would try. Basically, you want to ignore all the page ranking and sort on the appropriate field instead (@createDate or @updateDate probably).
Let us know how you get on with it.
cheers,
doug.
is working on a reply...