Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By oc on
I am trying to figure out how to use the recently added image modules for version 4.5, but when I search on "adding images" from the main Drupal.org search box, the results are not sorted.
Most of these results are from 2003, which is not useful to me as Drupal has changed. The default sort order should simply be by Date, Descending.
-rich
Comments
google is your friend
you ain't said 'snackbar' there, mister.
i think the issues with the search are well-known at this point, but i'm sure another vote for modifications is always good.
*in the meantime* google is your friend:
do a search for
site:drupal.org "your phrase in quotes"
comme ca:
http://www.google.ie/search?hl=en&q=site%3Adrupal.org+%22adding+images%22
It's now 2005 and some of us
It's now 2005 and some of us could still really use this feature. I would really like the ability to filter out some of the 2003 posts. Sure, google is great, but I feel this is something that should be built into a forum. Is it because this is difficult functionality to add, or that only a few people care about sorting search results by date?
: z
+1
I would like to have results ordered by date too; plus filter, e.g. I only want to search in Sub-Forum "How do I". Can drupal.org use trip_search module?
Gawd, a search that worked
Gawd, a search that worked at all in that forum would be good alright.
So much of it is the same stuff, but the subject lines (as is usual with newbies) are totally un-specific.
There must be something good in there, but it needs weeding badly.
How can such a righ database with such an emphasis on organisation have such problems just searching?
Yeah Google it is. You can even narrow it down to subdirectories :-)
Google: <a href="http://www.google.com/search?q=site%3Adrupal%2Eorg%2Fforum%2F22+taxonomy">site:drupal.org/forum/22 taxonomy</a>
.dan. is the New Zealand Drupal Developer working on Government Web Standards
many thanks
Many thanks for google tutorial. Are there any other useful advanced search tips?
Seek and ye shall ... oh that's too much effort for you is it?
Um ... yeh.
heaps in fact
But my tip is just get the Google toolbar and configure it to show the "search this site" button ALWAYS.
.dan.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Still, wouldn't it be nice
Still, wouldn't it be nice if a vibrant community with a great CMS had a decent search engine, sorting by date is standard in most other CMS searches. Look at PHPNuke and Postnuke for examples. Drupal needs this.
search order by date fixed
(in drupal 5)
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:
Nice hack, thank you.
Nice hack, thank you.
So I take it that the core search in Drupal 6 is the same as it ever was? (This hack works in Drupal 6 as well, the search line is just further down, I've tested it.)
Drupal 6 continued
I had to more than that to get this *truly* working under Drupal 6. Of course it's always wrong to hack core - buildings are burning and people are dying - unless you have a client who insists on it ;-)
This is from function node_search() in node.module version 6.10...
1. COMMENT OUT TERM HITS - I didn't need them so I commented out the following IF statement...
2. CHANGE RANKING TO CREATED DATE ONLY - Changed this line:
$ranking[] = '%d * POW(2, (GREATEST(MAX(n.created), MAX(n.changed), MAX(c.last_comment_timestamp)) - %d) * 6.43e-8)';
To this:
$ranking[] = '%d * POW(2, MAX(n.created) - %d) * 6.43e-8';
3. COMMENT OUT JOIN ON node_comment_statistics - I didn't care about that either...
4. DROP ALL OTHER WEIGHT FACTORS - Commented out this entire chunk...
5. CHANGE DISPLAYED DATE TO node.created INSTEAD OF node.changed - Or else the dates may appear in a different order than your readers expect them. Change this...
To this... (note the 'date' item)...
6. (OPTIONAL) REMOVE FALLBACK RELEVANCE - I decided not to, but you might want to. In this IF statement...
Comment out EVERYTHING except this...
Now you're dancin' like a pirate!
LVX
TF
-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com
this is a hack too
it hacks search module instead of node module and don't use any api for solve this problem.
Of course it is
Of course it is a hack.
What were you saying about search.module?
-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com
sorry i have a mistake it is
sorry i have a mistake it is a hack for node module
but i still cant find what make this hack preferable from Previous hack? this hack is more difficult than ,Previous hack,
the original hack is incomplete
The original hack is incomplete and may not provide the results you expect, due to other variables. The second set of hacks eliminates those variables.
-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com