Closed (fixed)
Project:
UIE Forum
Version:
5.x-1.x-dev
Component:
Search
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Jun 2008 at 18:45 UTC
Updated:
19 Jun 2008 at 07:41 UTC
IMHO, search should be capable of returning posts where the search term is either in the title or the body. I'm sure I read somewhere that that is how it worked but I can't be sure.
To reproduce, I added a post with the title PostTitleSearchText and body PostBodySearchText. Searching for the former produces no results while the latter shows correctly.
Comments
Comment #1
acrookes commentedIn the spirit of this all being open source and me just above the level of coding disaster, I've attempted a fix myself and modified the SQL in the UIEFORM.MODULE/UIEForum_search function as
but this returns no results in Drupal but works fine in phpMyAdmin and any other SQL Editor, albeit after removing the {} and manually entering the search string.
I've also tried using UNION as
Like the first example, this does work in an SQL editor after being cleaned. However, in Drupal, it returns all posts as if the where clause is being ignored.
I'm sure I am doing something wrong - Does anyone have any ideas?
Comment #2
daniel.hunt commentedThis is what I would do in this case:
The SQL is much cleaner this way, and the rest of the query is unaffected. If this works as you would expect, (I'm sure it will), let me know and I'll include it in the main release.
Comment #3
daniel.hunt commentedThat's not the only bug actually. I'm committed the new version of the module that includes post titles in the searching, thanks for your help in fixing it!
It should be ready for download from about midday. (GMT I believe)
Daniel
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.