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 2005 Forums
 Transact-SQL (2005)
 FTS query is not working with "Now" word

Author  Topic 

kiransuthar
Starting Member

9 Posts

Posted - 2008-11-18 : 12:46:25
Hello,
I am using SQL server 2005 and I am using one query which uses FTS.

queries:

select * from [Brands] where (FREETEXT([Name],'now'))
select * from [Brands] where (Contains([Name],'now'))

Above query is not returning any result. I know that there are some records which has "Now" word in it. but still its not coming in result.

Can anybody help me why this is happening?

Thanks
Kiran

lionofdezert
Aged Yak Warrior

885 Posts

Posted - 2008-11-18 : 14:55:55
select * from [Brands] where Contains([Name],'"now"')
Go to Top of Page

kiransuthar
Starting Member

9 Posts

Posted - 2008-11-19 : 10:18:28
Thanks for replying but select * from [Brands] where Contains([Name],'"now"') is not working.

Kiran

Go to Top of Page

kiransuthar
Starting Member

9 Posts

Posted - 2008-11-19 : 10:39:57
I got the solution for this problem.
Actually Now is a common word and may be in the noise word list so it is getting ignored
I had a look and 'now' is in there.
Naviagate to $SQL_Server_Install_Path\Microsoft SQL Server\MSSQL.1\MSSQL\FTDATAand edit the NoiseENG.txt file. Remove now from it and below query will work.

select * from [Brands] where (Contains([Name],'now'))

Thanks
Kiran
Go to Top of Page

lionofdezert
Aged Yak Warrior

885 Posts

Posted - 2008-11-19 : 11:32:07
Thanx for correcting me.
Go to Top of Page
   

- Advertisement -