Jump to content

Fulltext Keyword search across multiple tables should I do...


cooldude832

Recommended Posts

I have 3 tables that all relate back to a user

Users Table (user data email, address, phone etc.)

Relationships (user-user link dates, etc.)

Employment records (who they are employed by, dates, position etc.)

 

The goal is to full text search any field in any table pertaining to a user

so if the keywords are oranges, Florida and farmer it will match a person who lives in Florida, worked in Florida, worked with oranges or is a farmer.

 

What is the best way to accomplish such a complex query?

There will be around 50+ fields that will be looking for "full text"

Link to comment
Share on other sites

well Ideally I want to have the keywords found be highlighted in the search results so if you matched former job it would say

former job: <b> Orange</b> Picker

 

but the thing is there is about 50 fields not to mention there can be hundreds of relationships and jobs to be queried off for each user row.

 

My original thought was each time a usersID is hit in any table to recompile a field for the user that contains their "Info" a formatted field that would then be full searched.  And then if that hits full text I would then use php to treat it as a csv file for say.  Is that a good idea or no?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.