I've been working on a similar module to profilesearch. And I hereby suggests a rewrite for the D6 version of profilesearch.
In my approach I wrote a module that depends on the core search API. As of now, the module doesn't add any search functionality by it self. It only maintains a full-text index for users and user profile fields. By doing so, we could take advantage of the "Search Terms" filter and the "Search score" sort in Views and create whatever search combination of pages and blocks we'd like.
I think this approach is better than the current solution. The only disadvantage I see is that the index table could be quite huge when the site has a LOT of content, and a LOT of users with a LOT of information stored in profile fields. Is that a problem?
If this sounds like a good solution I would gladly co-maintain this module, and implement this functionality. I've attached my own module that with some renaming could result in a patch for HEAD.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | rewrite-d6-1.patch | 7.15 KB | dixon_ |
| userindex.module.txt | 2.79 KB | dixon_ |
Comments
Comment #1
dixon_The rewrite also takes care of all the tasks listed on the project page:
Add support for multiple keywordsThe rewrite implements full-text searchAdd admin capabilities to select which profile fields are included in the searchesWith the rewrite we considers the visibility value of each filed. However, an admin page that allows more specific inclusion/exclusion of fields would be a good thing.Include also data from the standard user profile fields in the resultsWith the rewrite we index the user name.Here is a patch that diffs the rewrite of all necessary files. Haven't got time to test the actual patch yet.
Comment #2
dixon_Bump. Any thoughts, suggestions or ideas on this?
Comment #3
manoz_79 commentedWere you able to make progress, in the rewrite, or you created a new module for user search?
Comment #4
dixon_I haven't had time to commit any changes yet. I'll try to do this over the weekend. So you can expect a working D6 branch very soon.
Comment #5
drupaljyeo commentedAwesome - a profile search module for D6 would be great!
Comment #6
dixon_I branched and committed the Drupal 6 version today. Grab it from CVS an test it! It's not ready for production use yet. So it may blow your database away if you are not careful ;) I'll create a stable release when the code is tested and ready for use.