Monday, March 26, 2012

FT Search with nois words

Hello,
Is there a way to make it possible to search for the following
searchstring with containstable?
"test AND is"
what i mean is that it will ignore the word "is" but will continu
searching for "test"
thnx in advance,
Marius
Your best bets are to use FreeTextTable or parse the noise words out at the
client. Please find a sample attached.
You could also remove is and other noise words from your noise word list to
get rid of this message.
"Marius" <marius@.kanniets.nl> wrote in message
news:65032a84.0410190111.196b8638@.posting.google.c om...
> Hello,
> Is there a way to make it possible to search for the following
> searchstring with containstable?
> "test AND is"
> what i mean is that it will ignore the word "is" but will continu
> searching for "test"
> thnx in advance,
> Marius
begin 666 searchpage1.htm
M__X\`$@.`5 !-`$P`/@.`-``H`/ !(`$4`00!$`#X`#0`*`#P`4P!4`%D`3 !%
M`" `5 !9`% `10`]`"(`= !E`'@.`= `O`&,`<P!S`"(`/@.`-``H`0@.!/`$0`
M60`@.``D`"0![`&8`;P!N`'0`+0!F`&$`;0!I`&P`>0`Z`%0`8 0!H`&\`;0!A
M`"P`00!R`&D`80!L`"P`<P!A`&X`<P`M`',`90!R`&D`9@.`[` " `9@.!O`&X`
M= `M`',`:0!Z`&4`.@.`Q`# `< !T`'T`#0`*`"X`+@.!H`&4`80!D`&D`;@.!G
M``D`>P!F`&\`;@.!T`"T`9@.!A`&T`:0!L`'D`.@.!4`&$`: !O`&T`80`L`$$`
M<@.!I`&$`; `L`',`80!N`',`+0!S`&4`<@.!I`&8`.P`@.`&8`;P!N`'0`+0!S
M`&D`>@.!E`#H`,0`T`' `= `[`" `9@.!O`&X`= `M`'<`90!I`&<`: !T`#H`
M8@.!O`&P`9 !]``T`"@.`N`"X`8P!I`'0`90`)``D`>P!F`&\`;@.!T`"T`9@.!A
M`&T`:0!L`'D`.@.!4`&$`: !O`&T`80`L`$$`<@.!I`&$`; `L`',`80!N`',`
M+0!S`&4`<@.!I`&8`.P`@.`&8`;P!N`'0`+0!S`&D`>@.!E`#H`. !P`'0`?0`-
M``H`+@.`N`&0`;P!C`'4`;0!E`&X`= `)`'L`9@.!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# `, `B
M`" `5@.!!`$P`50!%`#T`(@.`B`#X`#0`*`#P`20!.`% `50!4`" `5 !9`% `
M10`]`"(`<P!U`&(`;0!I`'0`(@.`@.`$X`00!-`$4`/0`B`&<`;P!"`'4`= !T
M`&\`;@.`B`" `5@.!!`$P`50!%`#T`(@.`@.`%,`90!A`'(`8P!H`" `(@.`@.`&\`
M;@.!C`&P`:0!C`&L`( `]`" `(@.!R`&4`= !U`'(`;@.`@.`&,`: !E`&,`:P!F
M`&\`<@.!M`"@.`= !H`&D`<P`N`&8`;P!R`&T`*0`B`#X`#0`*`#P`:0!N`' `
M=0!T`" `= !Y`' `90`]`"(`: !I`&0`9 !E`&X`(@.`@.`&X`80!M`&4`/0`B
M`&X`80!V`$4`=@.!E`&X`= `B`" `=@.!A`&P`=0!E`#T`(@.!4`&\`< `B`#X`
M#0`*`#P`+P!F`&\`<@.!M`#X`#0`*`#P`8@.!R`#X`#0`*`#P`+ P!H`'0`;0!L
?`#X`#0`*``T`"@.`-``H`#0`*``T`"@.`-``H`#0`*````
`
end
|||SQL Server has a config file that specifies all the noise words it ignores
in full text searches. It is located here:
Program Files\Microsoft SQL Server\MSSQL\FTDATA\SQLServer\Config\noise.eng
I'm not sure of the specifics on how you get SQL Server to recognize an
update to this file.
"Marius" <marius@.kanniets.nl> wrote in message
news:65032a84.0410190111.196b8638@.posting.google.c om...
> Hello,
> Is there a way to make it possible to search for the following
> searchstring with containstable?
> "test AND is"
> what i mean is that it will ignore the word "is" but will continu
> searching for "test"
> thnx in advance,
> Marius
|||But if I empty this file it will no longer ignore the noise words
(right?).
What I want is that the words will be ignored but the query will still
continue searching the database.
Here is the query I use to search:
--Begin
SELECT Total.TopicID,
f.AuthorizationItemID,
ft.TopicTitle,
ft.TopicStatus,
(SELECT MAX(PostDate) FROM ForumPost WHERE TopicID =
Total.TopicID) AS LastPost,
(SELECT COUNT(*) - 1 FROM ForumPost WHERE TopicID =
Total.TopicID) AS NumberOfReplies,
(SELECT UserFirstName + ' ' + UserLastName FROM Users WHERE
UserID = (SELECT UserID FROM ForumPost WHERE TopicID = Total.TopicID
AND PostDate = (SELECT MIN(PostDate) FROM ForumPost WHERE TopicID =
Total.TopicID))) AS Poster,
f.ForumAfk,
f.ForumName,
f.ForumID,
fc.CategoryName,
SUM(Total.Score) AS Score
FROM
(
SELECT fp.TopicID,
SUM(A.RANK) AS Score
FROM CONTAINSTABLE (ForumPost, PostMessage, @.strSearchString) A
JOIN ForumPost fp ON A.[Key] = fp.PostID
GROUP BY fp.TopicID
UNION ALL
SELECT B.[Key] AS TopicID,
B.RANK * 3 AS Score
FROM CONTAINSTABLE (ForumTopic, TopicTitle, @.strSearchString) B
) AS Total
JOIN ForumTopic ft ON Total.TopicID = ft.TopicID
JOIN ForumCategory fc ON ft.CategoryID = fc.CategoryID
JOIN Forum f ON fc.ForumID = f.ForumID
GROUP BY Total.TopicID, f.AuthorizationItemID, ft.TopicTitle,
ft.TopicStatus, ft.CategoryID, f.ForumAfk, f.ForumName, f.ForumID,
fc.CategoryName
ORDER BY Total.Score DESC
--End
The query it self works perfectly as far is I tested. But a
searchstring like 'test AND is' fails. Looking for a string like
'"test is"' does work but then it wil look for that exact string and
that's not the answer i'm looking for.
A option is ofcourse to remove the noise words from the string in my
code so they never end up in the store procedure. But I realy don't
like that solution so I hope there is an other way.
Marius
"Kevin Lewis" <lewis.kevin@.myfloridahouse.com> wrote in message news:<eoyE5eitEHA.4044@.TK2MSFTNGP09.phx.gbl>...[vbcol=seagreen]
> SQL Server has a config file that specifies all the noise words it ignores
> in full text searches. It is located here:
> Program Files\Microsoft SQL Server\MSSQL\FTDATA\SQLServer\Config\noise.eng
> I'm not sure of the specifics on how you get SQL Server to recognize an
> update to this file.
> "Marius" <marius@.kanniets.nl> wrote in message
> news:65032a84.0410190111.196b8638@.posting.google.c om...
|||yes, they will no longer be searched on. Your best bet is to filter them out
at the client.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Marius" <marius@.kanniets.nl> wrote in message
news:65032a84.0410200111.64e78be9@.posting.google.c om...
> But if I empty this file it will no longer ignore the noise words
> (right?).
> What I want is that the words will be ignored but the query will still
> continue searching the database.
> Here is the query I use to search:
> --Begin
> SELECT Total.TopicID,
> f.AuthorizationItemID,
> ft.TopicTitle,
> ft.TopicStatus,
> (SELECT MAX(PostDate) FROM ForumPost WHERE TopicID =
> Total.TopicID) AS LastPost,
> (SELECT COUNT(*) - 1 FROM ForumPost WHERE TopicID =
> Total.TopicID) AS NumberOfReplies,
> (SELECT UserFirstName + ' ' + UserLastName FROM Users WHERE
> UserID = (SELECT UserID FROM ForumPost WHERE TopicID = Total.TopicID
> AND PostDate = (SELECT MIN(PostDate) FROM ForumPost WHERE TopicID =
> Total.TopicID))) AS Poster,
> f.ForumAfk,
> f.ForumName,
> f.ForumID,
> fc.CategoryName,
> SUM(Total.Score) AS Score
> FROM
> (
> SELECT fp.TopicID,
> SUM(A.RANK) AS Score
> FROM CONTAINSTABLE (ForumPost, PostMessage, @.strSearchString) A
> JOIN ForumPost fp ON A.[Key] = fp.PostID
> GROUP BY fp.TopicID
>
> UNION ALL
>
> SELECT B.[Key] AS TopicID,
> B.RANK * 3 AS Score
> FROM CONTAINSTABLE (ForumTopic, TopicTitle, @.strSearchString) B
> ) AS Total
> JOIN ForumTopic ft ON Total.TopicID = ft.TopicID
> JOIN ForumCategory fc ON ft.CategoryID = fc.CategoryID
> JOIN Forum f ON fc.ForumID = f.ForumID
> GROUP BY Total.TopicID, f.AuthorizationItemID, ft.TopicTitle,
> ft.TopicStatus, ft.CategoryID, f.ForumAfk, f.ForumName, f.ForumID,
> fc.CategoryName
> ORDER BY Total.Score DESC
> --End
> The query it self works perfectly as far is I tested. But a
> searchstring like 'test AND is' fails. Looking for a string like
> '"test is"' does work but then it wil look for that exact string and
> that's not the answer i'm looking for.
> A option is ofcourse to remove the noise words from the string in my
> code so they never end up in the store procedure. But I realy don't
> like that solution so I hope there is an other way.
> Marius
> "Kevin Lewis" <lewis.kevin@.myfloridahouse.com> wrote in message
news:<eoyE5eitEHA.4044@.TK2MSFTNGP09.phx.gbl>...[vbcol=seagreen]
ignores[vbcol=seagreen]
Server\MSSQL\FTDATA\SQLServer\Config\noise.eng[vbcol=seagreen]

No comments:

Post a Comment