all groups > sql server full text search > august 2005 >
You're in the

sql server full text search

group:

FreeTextTable Search limitations



FreeTextTable Search limitations Nick Scott
8/17/2005 12:00:00 AM
sql server full text search: Hi,

I'm currently writing a search system in ASP with Javascript connected in to
SQL to search a product database. I'm using the FreeTextTable command to
search a number of fields and bring back results in rank order which is
working fine. However when the user submits a word in the noise list or
leaves the search blank and submits SQL returns a nice friendly ODBC
'80040e14' error.

I've read in FAQs and other posts etc to clear the noise filter and just
leave a space but if the user enters a space then hits search we have the
same issue. I'm not happy with that being the resolution and client side
code to correct this would have to cover the blank, space or multiple space
querystring. Instead of this is there not a way in the stored procedure to
throw something else back before returning what ever it does to bring up the
ODBC error? I'm new to stored procedures so not sure if there would be a way
to do this breaking out from a statement if it is yeilding a nasty ODBC
error. If anyone else has any suggestions or examples as to how they use the
FreeTextTable predicate to implement a search system through an ODBC driver
please let me know.

Regards

Nick Scott
MCSE 2003

Re: FreeTextTable Search limitations Hilary Cotter
8/17/2005 12:00:00 AM
Do a replace, replacing these illegal characters. Then check to see if the
resulting string is =0 characters, if so exit immediately with a return code
that will be interpreted by the calling application as an invalid search
string.

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

Re: FreeTextTable Search limitations zgw
8/19/2005 12:00:00 AM
set a filter to stop certain charactors such as space.
ok?

"Hilary Cotter" <hilary.cotter@gmail.com> дÈëÏûÏ¢
news:%233EnWf1oFHA.3120@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]

Re: FreeTextTable Search limitations Hilary Cotter
8/19/2005 12:14:29 PM
This would work, as long as the filter would permit these characters when
there was something in addition to them. So the phrase "this is a test"
would pass even though it contains the space characters. Whereas " " would
be filtered out as it only contains the space character.

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

AddThis Social Bookmark Button