CONTAINS returns 0 rows when it should return more rows
hello,
i'm new using full text search but, i'm trying use contains function search large text content. i'm trying use of more complex query functionallity. example, or keyword.
if search 'apple' example, 14 records back. search 'oranges' , 5 records back. if search 'apples or oranges' 0 records. shouldn't union or 2 results?
am mistaken in understanding of how text search works? documentation here explains syntax.
http://msdn.microsoft.com/en-us/library/ms187787.aspx
am doing wrong?
steve.
i'm new using full text search but, i'm trying use contains function search large text content. i'm trying use of more complex query functionallity. example, or keyword.
if search 'apple' example, 14 records back. search 'oranges' , 5 records back. if search 'apples or oranges' 0 records. shouldn't union or 2 results?
am mistaken in understanding of how text search works? documentation here explains syntax.
http://msdn.microsoft.com/en-us/library/ms187787.aspx
am doing wrong?
steve.
hey everyone,
i think figured out. looks quotename function interfeering contains search. removed the quotequerystring and used the querystring in contains and it worked should. i'm not sure why, i'm not sure quotename either since i'm not dba. wrote script using sample found in stored procedure our dbas wrote. wonder if source procedure has same problem(probably does).
steve
SQL Server > SQL Server Database Engine
Comments
Post a Comment