not searching multiple words
| Project: | Profile Plus |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | incrn8 |
| Status: | closed |
this module is a must for drupal :),
i installed it on 4.7 (maybe it works only with cvs?), with some users with some profile fields, and have same issue that exists on demo site for this module
say my user is from london and likes rock (and he filled in profile fields) when i type:
- london rock
- london AND rock
- london OR rock
the result is "nothing found"
I observed, that sometimes, when words are in the same profile fields, that kind of search will bring good results, but not always... just check on demosite:
http://www.womenscraftguild.org.uk/search/profile/blackburne
http://www.womenscraftguild.org.uk/search/profile/blackburne+brava
BUT
http://www.womenscraftguild.org.uk/search/profile/blackburne+house
see?

#1
The search is taking the search keyword as one single string and trying to match it. I guess it should really split the keywords up and search for each one.
Patches for this accepted as I am a bit busy currently to work on it.
#2
This a good module , i wish somebody could develop a multiple keyword search. It would really help novices like us.
http://www.himvani.com
#3
I am working on a solution for this problem. Its pretty much working at the moment, so if anyone is desperate to have it, let me know. The only thing I still want to do is implement paging of the results. Yes, I know you can use pager_query, but because of the way I do multiple keywords some pages might only have a few entries on them. So I'm looking at alternatives at the moment. I'm not the best coder in the world and I'm sure there's an easier way to do this, but nobody else seems to be doing anything about it at the moment, hence my hack. I'll post a patch when I get the pager bit working (or if I decide to give up on the pager :)
#4
I have created a patch against the HEAD version, that provides multiple keyword searching to the module. I have also updated the search to work with usernames seeing as the module removes the user tab from the search page.
All comments welcome, as are better solutions to this problem :)
#5
This issue has also been addressed in a patch that upgrades the module to Drupal 5.x (http://drupal.org/node/89855).
#6
This issue has been fixed in the 5.x release. If you need the functionality to be ported back to 4.7, please post back here.
#7