SQL Server - repost: SQL Server FT thesaurus file problem ..

Asked By Steve M
07-Nov-09 09:11 AM
Hi -

I am running SQL 2k5 Std Ed on Win XP Pro, current on SPs and patches.The
server collation is: SQL_Latin1_General_CP1_CI_AS

I tried to implement a minimal FT index Thesaurus file test:

create table FT_test (
FT_test_Id int identity(1,1) ,
theText varchar(8000)
)

insert	FT_test values('run')

CREATE FULLTEXT CATALOG [test]
IN PATH N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\FTData'
WITH ACCENT_SENSITIVITY = OFF
AS DEFAULT
AUTHORIZATION [dbo]

CREATE unique CLUSTERED INDEX [idx_FT_test] ON [dbo].[FT_test] (FT_test_Id
ASC)

alter table FT_test add CONSTRAINT [idx_FT_test_PK] PRIMARY KEY NONCLUSTERED
(	FT_test_Id ASC	)

CREATE FULLTEXT INDEX ON [dbo].[FT_test](theText)
KEY INDEX [idx_FT_test] on [test] with CHANGE_TRACKING OFF , NO POPULATION

Alter Fulltext Index on [dbo].[FT_test] start Full Population

Then I altered the file:
tsENU.xml
in the path:
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\FTData

to read:

in a "SQL Server Enterprise Manager" "New Query" text pain.

Then, I restarted the "SQL Server FullText Search (SQL2K5)" in the

And now expect the following query should return 1 row:
select * from FT_test where contains(theText, 'jog')

instead it returns nothing.

Q1: What am I doing wrong ?
Q2: if I put a few hundred entries into a thesaurus file, will it noticably
slow either FT queries or FT crawls, on a production 8-way x64 server,
compared to not using the thesaurus files ?

Thanks for any assistance.

SteveM
SQL Server
(1)
PRIMARY KEY
(1)
Collation
(1)
Freetext
(1)
Catalog
(1)
Varchar
(1)
XP
(1)
X64
(1)
  hilary replied to Steve M
07-Nov-09 09:10 PM
1) Thesaurus only works for freetext searches or formsof(thesaurus with
contains.
select * from FT_test where contains(theText, 'formsof(thesaurus, ''jog'')')

2) no.
  Steve M replied to hilary
19-Nov-09 08:29 AM
Hi -

Um, I tried the code you gave as an example:

select * from FT_test where contains(theText, 'formsof(thesaurus, ''jog'')')

, and it did not return anything. Clean boot, waited after giving the
population command, no error messages ..

I just re-tried it on a new clean db and new catalog. Same result.

???
help
How to make a StandBy server to be a Primary server? SQL Server Hi, In the SQL Server 2000 log shipping, how do we make a StandBy server to be a Primary server? Thanks for help. Jason SQL Server Discussions SQL Server 2000
Backup SQL Server SQL Server I am in the process of setting up a backup web server with SQL and IIS. The primary server is running Server 2008, SQL 2008 Standard, and IIS7. The backup server will remain dormant
Upsizing large Access table to SQL Server SQL Server I am using SQL Server 2005 Express and want to upsize large tables from MS Access to SQL Server. The upsizing wizard is skipping the large tables without any error. The QueryTimeout value in
Server side redirection to another instance of SQL Server? SQL Server Hi! SQL Server 2005 will be installed next to SQL Server 2000 which is the default instance. Is it possible to have a server side
SQL 2005 Express to SQL Server 2000 SQL Server Hi everyone, I have an SQL Server 2005 Express database as part of a Visual Studio project. I also have an SQL Server 2005 server. I'm trying to backup and restore my database to my web