Re: full-text across multiple columns
From: John Kane (jt-kane_at_comcast.net)
Date: 03/12/04
- Next message: Phil B: "Scheduled Updates to Full-text index not working"
- Previous message: MS SQL Survey Admin.: "RE: SQL Server Community Survey"
- In reply to: Peter Sleziak: "Re: full-text across multiple columns"
- Next in thread: Peter Sleziak: "Re: full-text across multiple columns"
- Reply: Peter Sleziak: "Re: full-text across multiple columns"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 12 Mar 2004 14:42:55 -0800
You're welcome, Peter,
The results that you are seeing in your queries is by design for SQL Server
7.0 post-SP2 and for SQL Server 2000, per the KB articles ;-(.
However, in the next release of SQL Server (codname Yukon) and now
officially called: "SQL Server 2005", you will be able to do multi-column
SQL FTS queries with the following syntax:
-- new Yukon (SQL Server 2005) SQL FTS syntax:
SELECT PrimaryKey, Col1, Col2, Col3
FROM SQLFTS_Table
WHERE CONTAINS((Col2, Col3 ), '"xxx" AND "yyy"')
Other than waiting for Yukon which has been delayed until 1st half of 2005,
and if you're interested, there are non-MSSearch methods to achieving what
you're looking for. Feel free contact me directly, if you want to pursue
this further.
Regards,
John
"Peter Sleziak" <sleziak@kn.vutbr.cz> wrote in message
news:u#0PNgHCEHA.1544@TK2MSFTNGP09.phx.gbl...
> Thank you,
> but what if I want select only from two columns. For example
>
> SELECT * FROM FT_TBL WHERE
> (CONTAINS(description, 'xxx') OR
> CONTAINS(info, 'xxx'))
> AND
> (CONTAINS(description, 'yyy') OR
> CONTAINS(info, 'yyy'))
>
> it returns me what i want:
>
> -----------------------------------
> | Description | Info | extra_info |
> |---------------------------------|
> | xxx | yyy | yyy |
> -----------------------------------
>
> but when I use CONTAINS(*, ...) it returns wrong rows.
> If you have an any idea please HELP !!! :)
> Thanks
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
- Next message: Phil B: "Scheduled Updates to Full-text index not working"
- Previous message: MS SQL Survey Admin.: "RE: SQL Server Community Survey"
- In reply to: Peter Sleziak: "Re: full-text across multiple columns"
- Next in thread: Peter Sleziak: "Re: full-text across multiple columns"
- Reply: Peter Sleziak: "Re: full-text across multiple columns"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|