开发者

Full Text Search Help

开发者 https://www.devze.com 2023-01-18 12:06 出处:网络
In a SQL Server database I\'ve two tables: Job and JobKeyword. Each Job has JobKeywords. I\'m trying to learn how to use Full Text Search.

In a SQL Server database I've two tables: Job and JobKeyword. Each Job has JobKeywords. I'm trying to learn how to use Full Text Search.

How can I get a list of all jobs in the databases, ordered by shar开发者_如何学Pythoned keywords between the search query and the jobs?


From a high level, basically you will need to add full text indexes on the columns you intend to do your searching on. Then just form the query you would normally use to join the Job and JobKeyword tables together - probably a left inner join. Once you have that query substitue the correct sql server full text predicate in where your where clause would normally be, and that should be about it. Here is a link to Microsoft's explicit implementation instructions.

Enjoy!

0

精彩评论

暂无评论...
验证码 换一张
取 消