Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Everone,

I am using Full Text Search for our Search Algorithm.

Description: Say there is a table called as Table1 which contains following columns

Pls. Note: Columns of Table1 are given in veritical fashion to have a better visiblity in the question.

Id (Column 1)
1
2
3
4

Name (Column 2)
Car
Polycarbonate
Repair shop
Mercedes Benz


Description (Column3)
Maruti Suzuki Car
Chemical used to compose polythene
Motor car repair shop
Car

I have given full text index on Name and Description columns of Table1
From webpage I enter a keyword to search which should either be in Name or Description or both. I am using FREETEXTTABLE predicate for this.

For example say I searched for "Car" it will list down all the above results from Id 1 to 4 because it will search for the keyword "car" which is there in all the rows.

Howwever, "car" in "Polycarbonate" (Id=2) is not relevant to my search, hence I want only 3 records that is Id = 1,3,4. But I am unable to find any solution to avoid such situation using my current implementation.

Can you please help me out on this. This is very urgent requirement.

Thanks in advance.

Have a nice day.
Posted
Updated 20-Jan-10 19:42pm
v2

1 solution

try this[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900