 |
|
 |
|
Next: The Gatherer object in project cannot be
|
| Author |
Message |
External

Since: Jul 10, 2008 Posts: 1
|
(Msg. 1) Posted: Thu Jul 10, 2008 4:06 am
Post subject: Boolean queries not working over the all columns in the index Archived from groups: microsoft>public>sqlserver>fulltext (more info?)
|
|
|
If I execute a query such as this one, I get back records that contain
"DaVinci" in AddressLine1 column and "Kirkland" in the City column:
select ft.id, ft.name, Line1, Line2, Line3, line4, city, county
from company as ft
inner join containstable(company, * , '"barnes nobl*"') as [key]
on ft.id = [key].[key]
inner join containstable( Address, *, 'davinci') as [key2]
inner join Address a on a.ID = [key2].[key]
on a.OwnerRecordID = ft.id
order by ft.id
Both the abovementioned columns are part of the address index. However if I
add a boolean operator to the above query:
select ft.id, ft.name, Line1, Line2, Line3, line4, city, county
from company as ft
inner join containstable(company, * , '"barnes nobl*"') as [key]
on ft.id = [key].[key]
inner join containstable( Address, *, 'davinci and kirkland') as [key2]
inner join Address a on a.ID = [key2].[key]
on a.OwnerRecordID = ft.id
order by ft.id
I don't get any records. It appears that if a boolean operator is in the
full-text query then the full text search is constrained to only one column.
This is not the first time I have encountered this. Is this a bug?
I am using the Katmai version of Sql Server >> Stay informed about: Boolean queries not working over the all columns in the in.. |
|
| Back to top |
|
 |  |
External

Since: Feb 04, 2008 Posts: 59
|
(Msg. 2) Posted: Mon Jul 14, 2008 12:00 pm
Post subject: Re: Boolean queries not working over the all columns in the index [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
markeboy wrote on Thu, 10 Jul 2008 04:06:00 -0700:
> If I execute a query such as this one, I get back records that contain
> "DaVinci" in AddressLine1 column and "Kirkland" in the City column:
> select ft.id, ft.name, Line1, Line2, Line3, line4, city, county from
> company as ft inner join containstable(company, * , '"barnes nobl*"')
> as [key]
> on ft.id = [key].[key]
> inner join containstable( Address, *, 'davinci') as [key2]
> inner join Address a on a.ID = [key2].[key]
> on a.OwnerRecordID = ft.id order by ft.id
> Both the abovementioned columns are part of the address index. However
> if I add a boolean operator to the above query:
> select ft.id, ft.name, Line1, Line2, Line3, line4, city, county from
> company as ft inner join containstable(company, * , '"barnes nobl*"')
> as [key]
> on ft.id = [key].[key]
> inner join containstable( Address, *, 'davinci and kirkland') as [key2]
> inner join Address a on a.ID = [key2].[key]
> on a.OwnerRecordID = ft.id order by ft.id
> I don't get any records. It appears that if a boolean operator is in
> the full-text query then the full text search is constrained to only
> one column.
> This is not the first time I have encountered this. Is this a bug?
> I am using the Katmai version of Sql Server
No, it's not a bug, it is in the documentation. Booleans are only ever
checked against a single column, not across all columns.
--
Dan >> Stay informed about: Boolean queries not working over the all columns in the in.. |
|
| Back to top |
|
 |  |
| Related Topics: | Boolean search - Hi all! This is my problem, I hope you can help me... I have an asp web site. I want to search, for exemple in a table of addresses, the string "apple+table", to have all the record in my table where in a list of fields (like name, address, t...
Searching not working - The service says it is working/running on my server. And my list, in the content settings, I have allow searching. But, when I attempt to search, nothing appears in the search. Any ideas?
searching across multiple columns - Hi I've seen lots of posts on this subject but no satisfactory answers. I asked the question in 2004 before SQL 2005 arrived so I wondered if there is a neat solution to this problem now. I want a way to get return one row from the query below. ..
fulltext search not working - HI!, Fulltext search is not working, i have two databases, fulltext search functionality was working fine on both of them till now. but suddenly fulltext search on one of the databases started giving out errors. when i try to populate, rebuild was..
MULtiple columns search using Containstable. - I have atable called Books and contains following columns all varchar(2000) columns. Title,Comments,Reference,PLaceprinted etc. I want to search all these columns. for key word(s) entered by user. if user enters in a key word(s) GUI field e.g: "... |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|