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.
Author |
Topic |
matthisco
Starting Member
48 Posts |
Posted - 2010-06-30 : 08:38:18
|
Hi, I've setup my full text catalog in the database I want to search.I've added the tables to the catalog and used their PK as the catalog index.I'd like to search the following fields for a text string, from the 2 tables below:pages.pageBody, pages.pageSummary, pages.pagetitle, sites.siteNameCan anyone please tell me the sql for this, and how to rank the results using a percentage?Many thankspages:PK pageID int UncheckedsiteID int CheckedpageLink nvarchar(MAX) CheckedpageBody ntext CheckedpageSummary ntext CheckedpageTitle nvarchar(MAX) CheckedpageOrder int Checkedpagehome bit Checkedpageadded smalldatetime CheckedpageLive bit Checkedsites:PK siteID int UncheckedsiteName nvarchar(MAX) Checkedsiteadmin nvarchar(MAX) CheckedsiteLive bit Checked |
|
matthisco
Starting Member
48 Posts |
Posted - 2010-07-01 : 05:10:04
|
Any ideas folks? I have 2 tables I'm like to do a ranked free text search on. So far I have this query off the web, how do I use the full text catalog in all this? SELECT f.rank, note_id, note_textFROM productnotesFREETEXTTABLE(full catalog??, fulltext catalog column????, 'searchterm') fWHERE productnotes.note_id=f.[key]ORDER BY rank DESC;Thanks again |
 |
|
|
|
|