|
5
18th March 12:43
External User
|
new Noise words that don't exist!? how do i know what to parse out?
Sorry, Henry,
I missed the FORMSOF(INFLECTIONAL, "&") in your 2nd query!
However, I did some additional testing of a couple of punctuation characters
on Win2003, with the following results:
use pubs
go
select @@version
go
select @@language
go
select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL,
''"book"'')')
-- select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL,
''book'')') -- returns same results
-- select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL,
') -- returns same results
/* -- returns:
Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
Dec 17 2002 14:22:05
Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.2 (Build 3790: )
us_english
KEY RANK
---- -----------
9952 48
0736 1000
(2 row(s) affected)
*/
-- However, I get different results - syntax error or Error Msg 7619 ,
depending upon the punctuation character used:
-- Using double quotes within single quotes and various punctuation
characters on Win2003 RTM with langw
select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL, ''"@"'')')
-- select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL,
''@'')') -- returns Error Msg 7619
-- select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL,
-- returns Error Msg 7619
/* -- returns:
Server: Msg 7619, Level 16, State 1, Line 1
Execution of a full-text operation failed. A clause of the query contained
only ignored words.
*/
select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL, ''"#"'')')
-- select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL,
''#'')') -- returns Error Msg 7619
-- select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL,
-- returns Error Msg 7619
/* -- returns:
Server: Msg 7619, Level 16, State 1, Line 1
Execution of a full-text operation failed. A clause of the query contained
only ignored words.
*/
select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL, ''"&"'')')
-- select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL,
''&'')') -- returns Error Msg 7631
-- select * from CONTAINSTABLE(pub_info, *, 'FORMSOF(INFLECTIONAL,
-- returns Error Msg 7631
/* -- returns:
Server: Msg 7631, Level 15, State 1, Line 1
Syntax error occurred near '&'. Expected '',', ')'' in search condition
'FORMSOF(INFLECTIONAL, '"&"')'.
*/
Hilary, he's using WinXP (Windows NT 5.1 (Build 2600: Service Pack 1)) which
uses the same new wordbreaker langwrbk.dll, so this could be the explanation
as to why you could not repo this on NT4.0 or Win2K machines as these OS
platforms use the infosoft.dll wordbreaker. I guess another "level" to add
to that grid of OS/SQL Server/single letters & punctuation characters!!
Regards,
John
|