Results 1 to 3 of 3

Thread: FREETEXTTABLE with Search Operators

  1. #1

    Thread Starter
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    772

    FREETEXTTABLE with Search Operators

    Hi,

    DB: SQL Server 2005

    I'm trying to build in search functionality into my app using FreeTextTable (because it allows searching accross columns and provides ranking).

    I'm having difficulty working out how to specify the AND search operator.
    E.G. 1
    Code:
    ...
    -- Or Search, which works
    LEFT OUTER JOIN FREETEXTTABLE(People,(Interests,Comments,Key_Phrases),'sheep calvin') AS Rank
    ...
    E.G. 2
    Code:
    ...
    -- AND Search, doesn't work
    LEFT OUTER JOIN FREETEXTTABLE(People,(Interests,Comments,Key_Phrases),'sheep AND calvin') AS Rank
    ...
    Any ideas or alternatives will be gratefully received

    Regards Al

  2. #2
    Frenzied Member MaximilianMayrhofer's Avatar
    Join Date
    Aug 2007
    Location
    IM IN YR LOOP
    Posts
    2,001

    Re: FREETEXTTABLE with Search Operators

    'sheep' AND 'calvin' ?

  3. #3

    Thread Starter
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    772

    Re: FREETEXTTABLE with Search Operators

    Unfortanately that doesn't work says syntax error or something, sorry I'm not at work at the moment and can't recall the exact message.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width