The length of the word in a FULLTEXT search. The size of the ft_min_word_len key. / ~#root -i The length of the word in a FULLTEXT search. The size of the ft_min_word_len key. / ~#root -i The length of the word in a FULLTEXT search. The size of the ft_min_word_len key. / ~#root -i The length of the word in a FULLTEXT search. The size of the ft_min_word_len key. / ~#root -i The length of the word in a FULLTEXT search. The size of the ft_min_word_len key. / ~#root -i The length of the word in a FULLTEXT search. The size of the ft_min_word_len key. / ~#root -i The length of the word in a FULLTEXT search. The size of the ft_min_word_len key. / ~#root -i The length of the word in a FULLTEXT search. The size of the ft_min_word_len key. / ~#root -i
  • RU
  • UA
  • EN
  • Create an online store
  • Documentation
  • Blog
    • Unix ОS
    • Php
    • MySQL
    • JavaScript
    • Package Managers
    • Docker
    • Seo
  • Auxiliary services
    • Short Links
    • Exchange views YouTube
  • Sign in
  • Create Account
  • Home
  • MySQL
  • The length of the word in a FULLTEXT search. The size of the ft_min_word_len key.

The length of the word in a FULLTEXT search. The size of the ft_min_word_len key.

The FULLTEXT key search is faster than the usual LIKE search, but its use is limited by the number of characters in the search word. Full text indexes are supported by MyISAM tables. Innodb support has been added since version 5.6.4.

Check the number of characters you are looking for :

SHOW VARIABLES LIKE ' ft_min_word_len '

Set the required quantity :

In the config file /etc/mysql/my.cnf (it may differ for different OS)

[mysqld]
ft_min_word_len=3

Restart mysql (mysqld or mariadb):

sudo service mysql restart

It is advisable to reset the cache of the table that will be searched:

REPAIR TABLE table QUICK;
FLUSH table table;

Adding a FULLTEXT key:

ALTER TABLE ` table ` ADD FULLTEXT(` field `);

Now the search for three or more characters will work without difficulty :

SELECT * FROM table
WHERE MATCH ( field ) AGAINST (' +Пик ' IN BOOLEAN MODE);

06 April 20
601
0

Comments

Name
E-mail
Rating
Review

Other articles from the category

01 September 2019

Mysql database of tires and disks

Base of automobile tires and disks. The database contains: manufacturer, model, year, modification, PCD, diameter, nut, tire and wheel factory sizes, possible replacement options, tire and wheel tuning. There are no trucks in the database.

30 March 2019

MySql 5.7 first setup, change root password and password length

Consider setting up MySql 5.7 access on Ubuntu 18.04. Let's define the mysql root user on the local machine, set the root password for him, consider changing the password length and restrictions on it.

20 December 2018

Disabling sql_mode=only_full_group_by in mysql 5.7 ubuntu 18.04

What to do if the error SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'db.books' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=onl...

Categories

  • Unix OS
  • Php
  • MySQL
  • JavaScript
  • Package Managers
  • Docker
  • Seo

Latest comments

Добрый день, Сергей. Я на более новых версиях блют...
root-i
23.02.23
Пробовал на transmart колонке. Ничего из перечисле...
Сергей
20.02.23
HenryMit, может быть
root-i
07.02.23
Неофрейдизм — это… Определение, принципы, представ...
HenryMit
07.02.23

I share information in which I needed help and spent a lot of time figuring it out. If the information helped at least one person, then this site was not created in vain.

Thank you for the continuation of the site:
Contacts

Telegram Viber Mail

Search for articles

  • Sign in
  • Create Account

Powered by chmod -R