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 global $wgFulltextStoplist;
8 /* private */ $wgFulltextStoplist = array(
581 class FulltextStoplist
{
583 /* static */ function inList( $word )
585 global $wgFulltextStoplist;
586 # FIXME: this will fail badly in many circumstances
587 $w = strtolower( $word );
588 $w = preg_replace( "/[^a-z']+/", "", $w );
589 return in_array( $w, $wgFulltextStoplist );