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.

CommentFileSizeAuthor
#1 rewrite-d6-1.patch7.15 KBdixon_
userindex.module.txt2.79 KBdixon_

Comments

dixon_’s picture

Status: Active » Needs review
StatusFileSize
new7.15 KB

The rewrite also takes care of all the tasks listed on the project page:

  • Add support for multiple keywords The rewrite implements full-text search
  • Add admin capabilities to select which profile fields are included in the searches With 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 results With 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.

dixon_’s picture

Bump. Any thoughts, suggestions or ideas on this?

manoz_79’s picture

Were you able to make progress, in the rewrite, or you created a new module for user search?

dixon_’s picture

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.

drupaljyeo’s picture

Awesome - a profile search module for D6 would be great!

dixon_’s picture

Status: Needs review » Fixed

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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.