List:General Discussion« Previous MessageNext Message »
From:Sergei Golubchik Date:August 9 2002 9:04am
Subject:Re: fulltext phrase search
View as plain text  
Hi!

On Aug 08, Dan Nelson wrote:
> In the last episode (Aug 08), Christopher Book said:
> > Using mysql 4.0.2 I get the following behaviour (phrase searching):
> > 
> > match (field) against ('"pack of"' in boolean mode)   
> > 
> > gives me all results with 'pack of', not just 'pack'.  So MySQL isn't
> > ignoring 'of' even though the word is too short to normally be
> > considered.
> >
> > However if I use: match(field) against ('"of the'" in boolean mode)
> > 
> > then the whole query is ignored.
> > 
> > It this working as designed?  Should the short words be "sometimes"
> > ignored?
> 
> If mysql internally does phrase searches by searching for "+word1 +word2", 
> then scanning the results for records where the words are also
> adjacent, that would be consistent with the results you're seeing.  As
> long as one of the words in the phrase is indexed, you'll get results.

Yes, it is how phrase search in MySQL is working.

Regards,
Sergei

-- 
MySQL Development Team
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <serg@stripped>
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, http://www.mysql.com/
/_/  /_/\_, /___/\___\_\___/  Osnabrueck, Germany
       <___/
Thread
fulltext phrase searchChristopher Book8 Aug
  • Re: fulltext phrase searchDan Nelson9 Aug
    • Re: fulltext phrase searchSergei Golubchik9 Aug