Active
Project:
SQL Search (Trip Search)
Version:
4.7.x-1.6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2007 at 08:21 UTC
Updated:
27 Sep 2009 at 22:18 UTC
Hi
I saw someone asked this question already - http://drupal.org/node/27374 - and got a simple no as an answer. Sorting results by date is not possible now. I'm looking for a search module that sorts results by date, most recently posted first, by default and was wondering if there is any way I could get this search module to do that , or if there are any plans of adding this feature. Having results returned by date is what most people expect from a search and I've been searching (heh) high and low for a Drupal module that does this.
I'm using trip search now and find no other issues with it, it would be perfect if it would just return by date.
Comments
Comment #1
Dabitch commentedAm I to interpret the silence on this question as a "No"? (not being snooty, just genuinly wondering if I've missed something in my searches - someone replying would help.)
I've only recently switched over to Drupal and am, due to search not returning things by "most recently posted" date order - seriously regretting this. Users are emailing in to complain about the search almost daily, having been spoiled I guess with a search engine that returned items by date before.
It seems a pretty straightforward thing to have, when a user searched a website, the results are returned in the order they were posted, showing the most recently posted item first.
I'm curious as to why drupals search don't do this, and why nobody seems interesting in adding such a feature. Am I the only one who would like this (apart from my users)?
How hard would it be to do? Is it difficult?
Comment #2
Rhino commentedhttp://drupal.org/node/13771#comment-948601
I used the trick from the above comment in Drupal 5 and it worked exactly as I wanted it to:
in file node.module placed in node module folder at line 925 you must change this code :
/modules/node/node.module line 925:
to this code:
However, I am now on Drupal 6 and back at wondering why on earth Drupal search doesn't return results based on most recent date. The trick also works in six but the line that needs changing is further down in the module.
Comment #3
Rhino commentedIt's a bit tedious that I have to remember to do this every time the core is updated.
Comment #4
Dabitch commentedThat's the trouble with hacking core.