Re: using AND accross multiple fields
- From: "Hilary Cotter" <hilary.cotter@xxxxxxxxx>
- Date: Mon, 8 Jan 2007 14:24:35 -0500
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?
.
- Follow-Ups:
- Re: using AND accross multiple fields
- From: ddaiker
- Re: using AND accross multiple fields
- References:
- using AND accross multiple fields
- From: ddaiker
- using AND accross multiple fields
- Prev by Date: using AND accross multiple fields
- Next by Date: Re: using AND accross multiple fields
- Previous by thread: using AND accross multiple fields
- Next by thread: Re: using AND accross multiple fields
- Index(es):
Relevant Pages
|