S
S
ssrdop2015-11-19 10:19:57
PHP
ssrdop, 2015-11-19 10:19:57

Fulltext mysql search does not work correctly. Where is the mistake?

In the database of the online store, I decided to use full-text search. Put indexes on the required fields, translated the table into MyISAM. Using the query SELECT * FROM 'tableName' WHERE MATCH(field) AGAINST('Paper'); I get zero rows, if I look for another word, for example, ginger, then what is needed is returned. What is the reason for this selective return of results? With the help of Like, everything is searched perfectly.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max, 2015-11-19
@AloneCoder

Apparently the word paper occurs so often that mysql considers it a stop word

E
Eugene, 2015-11-20
@Nc_Soft

You have this word either in stop words, or it occurs in half of the entries.
In general, there is an error in the phrase "Fulltext mysql search", for this it is better to use sphinxsearch / elasticsearch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question