Re: using AND accross multiple fields
- From: "ddaiker" <ddaiker@xxxxxxxxx>
- Date: 8 Jan 2007 12:42:41 -0800
Sorry about that, I did the clasic newsgroup no-no of posting a
questions before searching. After I did a search I found this topic
discussed all over the place. I deleted my post but not in time.
Thanks for your response anyway.
Hilary Cotter wrote:
In SQL 2000 a freetext query would do what you are looking for. This has
changed in SQL 2005.
I think your best bet would be to have a third column which is also
full-text indexed and is a concatenation of the previous two columns.
--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"ddaiker" <ddaiker@xxxxxxxxx> wrote in message
news:1168279934.592635.327390@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In SQL Server 2005 it seems that if multiple columns in a table are
included in the FTI and you do a CONATAINS query using AND accross all
columns all the terms must be in one column. Is this correct?
Example:
MyTable
ID TheText MoreText
-------------------------------------------
1 alpha beta gamma delta
and my query
SELECT * FROM MyTable WHERE CONTAINS(*,'beta AND gamma')
This returns no rows. Is this the expected behaviour? Is there any
way to get it to ignore the different columns and treat it as one?
.
- References:
- using AND accross multiple fields
- From: ddaiker
- Re: using AND accross multiple fields
- From: Hilary Cotter
- using AND accross multiple fields
- Prev by Date: Re: using AND accross multiple fields
- Next by Date: CONTAINS, phrases and keywords
- Previous by thread: Re: using AND accross multiple fields
- Next by thread: CONTAINS, phrases and keywords
- Index(es):
Relevant Pages
|