Groups | Blog | Home
all groups > sql server full text search > september 2006 >

sql server full text search : Populated Full-Text Catalog but no results (sql express)


Eric Johnson
9/30/2006 2:11:49 PM
I'm using SQL Express with Advanced Services and can't seem to get the
FREETEXT or CONTAINS predicates to operate how they should. I've gone
as far as create a simple database, with one table, with one column
that's indexed and those still aren't returning anything other than
direct hits.

I have a table with 7 rows, all forms of the word 'ride' (taken from the
sample in the documentation, which I'm assuming should work...):

keyColumn string
--------- ---------
1 ride
2 riding
3 ridden
4 rider
5 rides
6 riding freely


"string" column is an nvarchar(255), keyColumn an identity int.

Executing:
select * from testtable where contains (string, 'formsof ( inflectional,
ride )')

just returns the first row above. According to the documentation, it
should at least return a few others, right? The FREETEXT predicate
returns the same way.


SELECT FullTextCatalogProperty('TestFullTextCatalog', 'itemcount')
SELECT FullTextCatalogProperty('TestFullTextCatalog', 'uniquekeycount')
SELECT FullTextCatalogProperty('TestFullTextCatalog', 'indexsize')
SELECT FullTextCatalogProperty('TestFullTextCatalog', 'populatestatus')

Returns:
6
7
0
0


Hilary Cotter
9/30/2006 6:33:16 PM
I suspect you are not using the US or UK English word breakers. Can you
verify which work breaker you are using?

--
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

[quoted text, click to view]

Hilary Cotter
10/1/2006 12:00:00 AM
use sp_help_fulltext_columns and look at the FULLTEXT_LANGUAGE column value

--
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]

Eric Johnson
10/1/2006 12:00:00 AM
Thanks, it's showing 1033.

[quoted text, click to view]
Eric Johnson
10/1/2006 4:03:20 AM
I'm unsure how to check this.

I did look at sp_configure and the Default Full Text Language is 1033
and Default Language is 0. I recreated the fulltext index on that
simple table again, this time with TSQL and specifying "LANGUAGE 1033"
and it worked. The documentation says that if the LANGUAGE clause is
omitted that the server's Default Language would be used. But this
doesn't seem to be the case. Am I going to have to recreate these
indices all over, specifying the LANGUAGE ?


[quoted text, click to view]
Eric Johnson
10/1/2006 9:25:33 PM
On my original, still not-working database, the fulltext language is
coming back as 0.

[quoted text, click to view]
Hilary Cotter
10/2/2006 9:07:44 AM
You have to update this to have a language value for US_English 1033. Drop
and recreate the full-text index.

--
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]

Hilary Cotter
10/2/2006 4:03:15 PM
I thought the default full-text language was 1033? If it is 0, change it to
1033.

--
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]

Eric Johnson
10/2/2006 6:47:04 PM
I'll do just that. Thanks.

Shouldn't it be defaulting to the Default FullText Language though?

[quoted text, click to view]
Eric Johnson
10/2/2006 8:13:33 PM
sp_configure is showing the default full-text language as 1033. I was
under the impression that if no LANGUAGE clause was specified on a
FullText Index's column declaration, then the default would be used
(1033 in my case). But that's just not how it's working, so it had me
confused.

To get it working right now I'm going to redefine each index, this time
with the LANGUAGE clause. But I still don't understand what good the
"default full-text language" setting is if it's never used.

[quoted text, click to view]
Hilary Cotter
10/2/2006 10:31:02 PM
Your completely correct. I am not sure why this is happening.

I am unable to repro it on my machine. By default my full-text language is
1033(sp_configure 'default full-text language) and full-text indexes I
create are created by default with a language of 1033.

--
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]

Eric Johnson
10/3/2006 2:37:08 AM
Ok, at least I'm not going crazy. Thanks for getting me on the right track.

Eric

[quoted text, click to view]
AddThis Social Bookmark Button