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)
 FREETEXTTABLE with AND

Author  Topic 

querybest
Starting Member

22 Posts

Posted - 2005-08-12 : 02:47:58
[code]FREETEXTTABLE(tbl,field,'asp AND php')[/code]

Don't we use AND statement with FREETEXTTABLE in full text search ?

'asp and php' is working like 'asp OR php'
and it gets records that have not asp AND php words at the same time ?

FREETEXTTABLE's rank propertiy is very powerful for me..
that is the why I intend to use it

querybest
Starting Member

22 Posts

Posted - 2005-08-12 : 03:21:02
sorry, CONTAINSTABLE instead of FREETEXTTABLE is what I need.

but I dont want to remove this topic, maybe someone needs

next question.

I indexed two columns..
title and description are name of them


SELECT M.* FROM tbl AS M INNER JOIN CONTAINSTABLE(tbl,title,'"soccer"') AS A ON M.[id]=A.[KEY] ORDER BY A.RANK DESC

this is okay.
but How can I add to it a new CONTAINSTABLE for column of description
CONTAINSTABLE (tbl,description,'"soccer"')

soccer must exist in title OR in description.
but ordering by must be by two of them
Go to Top of Page
   

- Advertisement -