Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Full Text Index Searches using multiple tables

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-04-05 : 16:30:13
Jason Cavaliere writes "I have been assigned the task of building a search engine for an internal web site. So far I have established that I need to use a full text search, which is now implemented. My question is this:

How would I be able to order my search in a ranking system?

Below is the the stored procedure I wrote:

CREATE PROCEDURE spsearch
@searchValue varchar(500)
AS
select HouseID,cast(FeaturedHomeContent as varchar),search, cast(valenciacontent as varchar) from featuredhome where contains (*,@searchValue)
union
select UID,name,search,description from apartments where contains (*,@searchValue)
union
select UID,village_name,search,welcome_description from villages where contains (*,@searchValue)
union
select UID,neighborhood_name,search, Neighborhood_Desc_Short from Neighborhoods where contains (*,@searchValue)
union
select UID,plan_Name,search, information from Plans where contains (*,@searchValue)
union
select UID,Question,search, Answer from Questions where contains (*,@searchValue)
union
select UID,Name,search, cast(Content as varchar) from Content where contains (*,@searchValue)
GO

This accomplishes the task, but I am worried about performance issues if it were to be a heavy traffic area. I also have experimented with the containstable() syntax, but I was unable to perform a UNION using it. Any suggestions?"
   

- Advertisement -