Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

RE: FN-FORUM: MySql Escaping -

date posted 17th October 2006 13:11



> -----Original Message-----
> From: Tony Crockford [EMAIL REMOVED]
> Sent: 17 October 2006 12:28
> To: Charles E. Gatenby
> Subject: Re: FN-FORUM: MySql Escaping -
>
>
> Charles E.Gatenby wrote:
> > Dam.. I have access to neither... :( But thanks any way. I
> think the
> > only thing for me to do is replace the - with some other
> character and
> > then replace it back when it gets displayed..
>
> you mean when you're storing it and retrieving it and setting
> up the search?
>
> are you sure you want a fulltext search type? seems to me
> that it's a fuzzy match (natural language matching) at best
> and you seem to be looking for exact word matching? is there
> a reason you're using FULLTEXT?

Yes, defiantly need fulltext.

>
> that would make sense, but check the mysql manual for the
> other delimiters first...
>
> I thought you might get away with just losing it, but spaces
> are also word delimiters and short words aren't included in
> the search anyway
> AIUI: so you'd end up looking for "weston mare" (BTW isn't
> it super not
> sub?)

Indeed it is weston-super-mare, although I wasn't using that in my test,
which is why Ben's solution didn't work.... D'oh.


>
> The FULLTEXT parser determines where words start and end by
> looking for certain delimiter characters; for example, ' '
> (space), ',' (comma), and '.' (period). If words are not
> separated by delimiters (as in, for example, Chinese), the
> FULLTEXT parser cannot determine where a word begins or ends.
> To be able to add words or other indexed terms in such
> languages to a FULLTEXT index, you must preprocess them so
> that they are separated by some arbitrary delimiter such as '"'.
>
> Some words are ignored in full-text searches:
> Any word that is too short is ignored. The default minimum
> length of words that are found by full-text searches is four
> characters.

And hence why my test for "hay-on-wye" return nothing..

>
> Words in the stopword list are ignored. A stopword is a word
> such as "the" or "some" that is so common that it is
> considered to have zero semantic value. There is a built-in
> stopword list, but it can be overwritten by a user-defined list.
>
>

Time reduce the char limit to 2 me thinks...



Messages by Day
October 31st 2006
October 30th 2006
October 29th 2006
October 28th 2006
October 27th 2006
October 26th 2006
October 25th 2006
October 24th 2006
October 23rd 2006
October 22nd 2006
October 21st 2006
October 20th 2006
October 19th 2006
October 18th 2006
October 17th 2006
October 16th 2006
October 15th 2006
October 14th 2006
October 13th 2006
October 12th 2006
October 11th 2006
October 10th 2006
October 9th 2006
October 8th 2006
October 7th 2006
October 6th 2006
October 5th 2006
October 4th 2006
October 3rd 2006
October 2nd 2006
October 1st 2006


Messages by Month
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000