I am curious how relevance searching works. I have about 11 tables and I would like to make certain fields in those tables searchable, and the results displayed by relevance.
I've thought about this many different ways to do this, but haven't come up with a way that seems the simplest as well as provides the best performance.
See, I would like each of my search results to display differently based on what table they are coming out of. For example, if a user searches for "Accounting", I would like to hit the "departments" table and find accounting, then display the phone/fax numbers to that department, then move onto the employees table and find the employees that are in the accounting department, showing their name, extension, and title, and then finally go into our table of documents and display any documents with "accounting" in the designated text search field.
What I'm asking for may be too complicated, however I feel this is going to provide the best results for our users when they use the search box.
If all this sounds like too much to try to accomplish, then how could I just do a search through each of my tables and return the results by % of relevance?
Thanks for the help.
_______________
_brian.
I've thought about this many different ways to do this, but haven't come up with a way that seems the simplest as well as provides the best performance.
See, I would like each of my search results to display differently based on what table they are coming out of. For example, if a user searches for "Accounting", I would like to hit the "departments" table and find accounting, then display the phone/fax numbers to that department, then move onto the employees table and find the employees that are in the accounting department, showing their name, extension, and title, and then finally go into our table of documents and display any documents with "accounting" in the designated text search field.
What I'm asking for may be too complicated, however I feel this is going to provide the best results for our users when they use the search box.
If all this sounds like too much to try to accomplish, then how could I just do a search through each of my tables and return the results by % of relevance?
Thanks for the help.
_______________
_brian.