Re: SQL 2000 FTS - Different results between Win2k3 and Win2000

Tech-Archive recommends: Fix windows errors by optimizing your registry



Dan - we have made changes to the noise word files. What should I look in
them for that would cause the the behavior of "5.2*" not finding "5.2MM"?

You're right - we're not relying on "5*MM" - I just happened to notice it
when trying to see how the period (.) was being processed and whether that
was a word breaker. Thanks.

"Daniel Crichton" wrote:

Tim wrote on Wed, 25 Feb 2009 05:53:02 -0800:

We have a SQL 2000 server on Win2000 that returns search results that
are expected, but the same search on Win2k3 returns unexpected
(incorrect) data.

Server 1 (returns expected results):
@@version = Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3
2005 23:18:38 Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.0 (Build 2195: Service Pack 4)
@@language = us_english

Server 2 (returns unexpected results):
@@version = Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3
2005 23:18:38 Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
@@language = us_english

The indexed field being searched is a varchar(255) with a collation
setting of SQL_Latin1_General_CP850_BIN. The value being sought in
that field is:
CARB 5.2MM 4X8 HONEY BINGO BIRCH LAUAN PANELING

The script used to search is:
select [KEY],p.ProductName from
CONTAINSTABLE(Product,ProductName,'"5.2*"')
inner join Product p (nolock) on p.ProductNumber = [KEY]

Win2000 returns the desired record/value shown above. Win2k3 does not.
HOWEVER, if on the Win2k3 box I modify the script to become "5.2M*" it
then works. Is the period (.) affecting this as a word breaker? Why
would the "M" have to be supplied to retrieve "5.2MM"? A user should
rightfully expect to get back "5.2MM" when they enter "5.2*".


Further examples between the two envrionments:
"5.2*" - (Win2k3 - Doesn't work) | (Win2000 - Does work)
'5.2M*" - (Win2k3 - Does work) | (Win2000 - Does work)
"5.2MM" - (Win2k3 - Does work) | (Win2000 - Does work)
"5*2MM" - (Win2k3 - Does work) | (Win2000 - Doesn't work)
"5 2MM" - (Win2k3 - Does work) | (Win2000 - Doesn't work)
"2MM" - (Win2k3 - Does work) | (Win2000 - Doesn't work)

Again, the first example (5.2*) is the one I'm concerned about because
a user should expect to get back the result. Also, if the word
breaker is the issue, I do not want to use the neutral word breaker
because we need to use the inflectional search option.

Thanks for any help.
Tim

Did you make any changes to the ignored words lists on either server?

Also, 5*2MM is not going to produce any useful results because it's not
supported. You getting the expected result on Windows 2003 is mere
coincidence.

--
Dan



.



Relevant Pages

  • Re: SQL 2000 FTS - Different results between Win2k3 and Win2000
    ... CARB 5.2MM 4X8 HONEY BINGO BIRCH LAUAN PANELING ... if on the Win2k3 box I modify the script to become "5.2M*" it ... Is the period affecting this as a word breaker? ...
    (microsoft.public.sqlserver.fulltext)
  • Re: SQL 2000 FTS - Different results between Win2k3 and Win2000
    ... word breaker used the noise word file also affects the way the queries are ... if on the Win2k3 box I modify the script to become "5.2M*" ... breaker because we need to use the inflectional search option. ...
    (microsoft.public.sqlserver.fulltext)
  • Re: Problem with UNICODE and Index Server
    ... > according the language rules of the word breaker. ... of characters for a ceratin language and region. ... Expecting ANSI chars just because the regional setting is English ...
    (microsoft.public.inetserver.indexserver)
  • Re: "CONTAINS" ignores "fahrenheit"?
    ... >> "Language for Word Breaker" on your FT-enable column and then run a Full ... >> remove single numbers from noise.dat (Neutral noise word file) prior to ...
    (microsoft.public.sqlserver.fulltext)
  • Re: LCID indexed columns
    ... Thanks Hilary, the language for word breaker was empty, I selected English ... Looking for a SQL Server replication book? ... full-text indexed columns. ...
    (microsoft.public.sqlserver.fulltext)