hi barney,

thx for the idea:) why not..

--
Sebastian Mork
[EMAIL PROTECTED]
--

On Mon, 16 May 2005 09:50:30 -0700
Barney Boisvert <[EMAIL PROTECTED]> wrote:

> Strip the HTML on insert and store the plain text in a separate field.
>  Then create a fulltext index on it (if you're using MyISAM tables),
> and do your searches against that plaintext field.
> 
> cheers,
> barneyb
> 
> On 5/16/05, Sebastian Mork <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > I've a problem.
> > In a mysql-db I've a table where some html-content is stored.
> > 
> > Now, I want to provide a search function that searches in these fields.
> > 
> > But how can I tell mysql (using a regEx-pattern) to except tags in the
> > search.
> > 
> > I think of doing something like this
> > select
> >         tbl_name.fld_name as test
> > where
> >         replace(tbl_name.fld_name, '<[^>]*>', '') like '%#mySearchString#%'
> > 
> > but the mysql-replace-function does not accept regular expressions..
> > hmm, has anybody an idea?
> > 
> > --
> > Sebastian Mork <[EMAIL PROTECTED]>
> 
> 
> -- 
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
> 
> Got Gmail? I have 50 invites.
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206775
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to