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.
MySQL Development Team
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Sergei Golubchik <serg@stripped>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, http://www.mysql.com/
/_/ /_/\_, /___/\___\_\___/ Osnabrueck, Germany