3 # This is the MySQL fulltext search stoplist, copied from the
4 # source file "myisam/ft_static.c" in the MySQL source distribution.
5 # If you use a new version of MySQL, this might have to be changed.
7 /* private */ $wgFulltextStoplist = array(
580 class FulltextStoplist
{
582 /* static */ function inList( $word )
584 global $wgFulltextStoplist;
585 # FIXME: this will fail badly in many circumstances
586 $w = strtolower( $word );
587 $w = preg_replace( "/[^a-z']+/", "", $w );
588 return in_array( $w, $wgFulltextStoplist );