Closed (won't fix)
Project:
Drupal core
Version:
7.x-dev
Component:
search.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2006 at 03:30 UTC
Updated:
2 Jun 2009 at 01:58 UTC
Jump to comment: Most recent file
Comments
Comment #1
Robrecht Jacques commentedDoes this still apply?
I don't find a call to db_rewrite_sql() in node_search(). I do find a _db_rewrite_sql() in node_search('search'). Is that what you mean?
Please elaborate.
Comment #2
moshe weitzman commentedyes, i refer to _db_rewrite_sql()
changed title to be more clear.
Comment #3
moshe weitzman commentedComment #4
robertdouglass commentedYes. This needs to be done as part of a refactoring of do_search since the query fragments present in node_search aren't really sufficient to do the db_rewrite_sql() in their current form. I suppose it belongs in do_search and any specific information that db_rewrite_sql needs has to be passed into do_search as well. Or we make a nice query builder that can replace do_search.
Comment #5
David Lesieur commentedLIVE FROM THE MINNESOTA SEARCH SPRINT! Here's a patch that refactors do_search() slightly... It has some pros and cons:
Pros:
Cons:
However, this patch might become a (small) first step towards a larger issue encompassing search query parsing and building...
Comment #6
robertdouglass commentedComment #7
swentel commentedPatch doesn't apply anymore at this point, I'll investigate later to try and fix it.
Comment #8
jsaints commentedPlaying patch bingo... saw that this needed to be updated for HEAD. I rerolled the patch for HEAD and verified that all tests pass without failure or exception.
I cannot vouch for the functional merit of this patch. I am not that familliar with the search.module. I notice, tough, that a few respected drupalers seem to think its quite important. So here it is, re-rolled for HEAD (D7).
Thanks
Comment #9
jsaints commentedpatch is ready for review.
Comment #10
Anonymous (not verified) commentedThe last submitted patch failed testing.
Comment #11
chx commentedDBTNG fixed this. yay.