all groups > sql server full text search > may 2006 >
You're in the

sql server full text search

group:

Table index and file system index


Table index and file system index Alan
5/30/2006 12:00:00 AM
sql server full text search:
I have created a file system catalog using Windows Indexing Service and also
a pub database catalog inside SQL Server 2000.
Can I use do a full-text search inside SQL Server to search both catalog?

Re: Table index and file system index Hilary Cotter
5/30/2006 10:26:08 PM
If you create a linked server you can

select * from openquery(web,'select doctitle, filename from web..scope()
where contains(''test'')')
union
select * from employees where contains(*,'test')

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

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



[quoted text, click to view]

Re: Table index and file system index Alan
5/31/2006 12:00:00 AM
Hi Hilary,

If I want to test the
select * from openquery(file,'select doctitle, filename from web..scope()
where contains(''test'')')
in QA, which database should I use ?
In addition, in your example you use the web, what keyword should I use for
file system ?


[quoted text, click to view]

Re: Table index and file system index Alan
5/31/2006 12:00:00 AM
Hi Hilary,

Yes, I tried it works both in QA using masterdb and pubs.

However, if I embed this SQL in my front end application component in Delphi
sending it to SQL Server I got the error:

'Incorrect syntax near '('. Expected end-of-file, ';', AS, CREATE, DOT,
DOTDOT, DOTDOT_SCOPE, DOTDOTDOT, DOTDOTDOT_SCOPE,
DROP, ORDER_BY, SELECT, SET, WHERE. SQLSTATE=42000'

This is my SQL:
'select * from openquery(demofile,''select doctitle, filename from
demo..scope() where contains(contents, ''"help"'')'')'

demo is my Windows Indexing catalog.
demofile is the linked server.

[quoted text, click to view]

Re: Table index and file system index Hilary Cotter
6/1/2006 9:43:36 PM
Use any database. Web is the name of my linked server to the indexing
services catalog for my web site. You could create a catalog called Alan,
which is a linked server to the system indexing services catalog.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

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



[quoted text, click to view]

Re: Table index and file system index Hilary Cotter
6/1/2006 9:48:18 PM
This is mine. My linked server name is web, and my catalog name is web1
declare @test varchar(2000)
select @TEST='select * from openquery(web,''select doctitle, filename from
WEB1..scope() where contains(contents, ''''"help"'''')'')'
PRINT @TEST
EXEC (@TEST)


--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

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



[quoted text, click to view]

AddThis Social Bookmark Button