Re: best efficiency for full-text search
From: Lowell Heddings (lowell_at_mindjunction.com)
Date: 12/10/04
- Next message: John Bell: "RE: Sending Email with SQL"
- Previous message: Natesh Kumar: "RE: syntax to print list of SPs"
- In reply to: Random: "best efficiency for full-text search"
- Next in thread: John Kane: "Re: best efficiency for full-text search"
- Reply: John Kane: "Re: best efficiency for full-text search"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 10 Dec 2004 02:52:56 -0500
In my experiences, you would definitely want to handle that outside of
the SQL code. It's easy enough to write some code to handle it.
I do something similar to this, which eliminates parsing:
keywords = replace(keywords,"AND NOT","~AN~")
keywords = replace(keywords,"AND","~A~")
keywords = replace(keywords," "," ")
keywords = replace(keywords," "," AND ")
keywords = replace(keywords,"~A~"," AND ")
keywords = replace(keywords,"~AN~"," AND NOT")
etc etc etc
I'm sure there are a lot of ways to handle it much better, but that's
how I've done it, and I use the same block of code in every app that I
write, so I don't have any need to find a better method.
Also, one of the problems with full-text searching that I've always
found is using multiple columns... I use a single column that I concat
all the other fields into.
Lowell
Random wrote:
> I have created and populated a catalog on my table to enable full-text
> searching, no problems. Now I want to implement a stored procedure to run
> the search based on a delimited string of keywords. I am wondering if there
> is a de facto accepted method for parsing the keywords, and running them
> against the catalog for a prioritized result set.
>
> I'm not a fan of using dynamic sql inside a stored procedure (kinda defeats
> the purpose), so I'm wondering what others here might recommend before I
> proceed really far into this.
>
>
- Next message: John Bell: "RE: Sending Email with SQL"
- Previous message: Natesh Kumar: "RE: syntax to print list of SPs"
- In reply to: Random: "best efficiency for full-text search"
- Next in thread: John Kane: "Re: best efficiency for full-text search"
- Reply: John Kane: "Re: best efficiency for full-text search"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|