Mysql treats the dash as a word separator. There's no way to change
that unless you change the source code and recompile Mysql.
Also, the default min word length is 4. So not only is "E" not
matched; even "018" will not be matched. The min word length is easily
configurable, though. Put a .cnf file in the conf dir of your
installation, and have the line:
and restart your mysql server. If "018" is not a common word in your
index, then it will show up as a match.
> > mysql> select * from fullsearch where match (title,body) against ('018-E');
> > Empty set (0.00 sec)
> > it returns an empty set, is it possible to also search with "-" dash? chars?
> If I remember correctly, you need to pass the string as a phrase to fulltext:
> select * from fullsearch where match (title,body) against ('"018-E"');
> I'd prefer being able to escape the - with \, since using a phrase has
> other disadvantages (like partial word matching goes out the window),
> but you can't.
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql