Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I configure the search engine for words of less than 4 characters?

0
Posted

How do I configure the search engine for words of less than 4 characters?

0

MySQL’s fulltext search engine has a default set of stop words which it ignores, and a minimum word length set to 4 characters by default. To change this you must reconfigure MySQL, see: http://dev.mysql.com/doc/mysql/en/fulltext-fine-tuning.html However, this talks about MySQL generically, and not with regard to using it with MediaWiki. So … if you took all the defaults for your installation of the OS, MySQL and MetaWiki and have only a small database (i.e. just installed), here’s how to go about getting three letter searches: • Firstly, if you already have a big wiki, the change can take a long time. The MySQL reference above has someone who did this for a 4Gb database and it took 10 days! So be careful. Now let’s have a go. • The parameter to reset is inside MySQL, and as noted above is discussed on the MySQL web site. Go there for more details if you’re into MySQL. • Find the config file for My SQL – this is normally my.cnf, located in /etc • Edit my.cnf and add the relevent para

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123