Thesaurus on full-text search is not working
- From: "Richard A. Lowe" <chadich@xxxxxxxxx>
- Date: Thu, 31 Aug 2006 23:43:22 -0500
Hi all, here's my setup:
Sql Server 2005 on Windows Server 2003 (standard). I have a datbase (Sql 90
compatibility level). I have very trivial example set up to try to get the
thesaurus to work.
My table:
CREATE TABLE TestData
(
TestDataID int PRIMARY KEY NOT NULL IDENTITY(1, 1),
TestData varchar(max) NOT NULL
)
go
-- the data:
insert into TestData(TestData) values('book')
insert into TestData(TestData) values('article')
Ok, so I create a full-text index on this table/data, then modify my
thesaurus file (tsEnu.xml) to this.
<XML ID="Microsoft Search Thesaurus">
<expansion>
<sub>book</sub>
<sub>article</sub>
</expansion>
</XML>
Then I re-start the Sql Server and Sql Full text services. Then I issue the
following query:
select * from ContainsTable(dbo.TestData, *, 'FORMSOF(THESAURUS, book)')
and it returns ONLY the key and rank of the row with 'book' in it. Using
FileMon from sysinternals, I can see that the tsEnu.xml and tsGlobal.xml are
queried by the msftesql.exe process (upon running the query) making me think
they should be working.
I have tried many combinations of the data, query syntax (like adding
dbl-quotes around book etc.) but there is no result of the expanded (or in
the cases I tried it a replacement).
Can someone offer some insight into how to troubleshoot this?
Thanks!
Richard Lowe
.
- Follow-Ups:
- Re: Thesaurus on full-text search is not working
- From: Richard A. Lowe
- Re: Thesaurus on full-text search is not working
- Prev by Date: Re: Sql Server 2005 Profiler cpu utilization inaccurate + search question
- Next by Date: Re: Thesaurus on full-text search is not working
- Previous by thread: Re: Sql Server 2005 Profiler cpu utilization inaccurate + search question
- Next by thread: Re: Thesaurus on full-text search is not working
- Index(es):
Relevant Pages
|
Loading