0

I have implemented full text search on two fields (title, description)

now if I search for chelsea in it gives me right result but when i search for Manchester city then it give all the result where title/description contains manchester or city

ex Manchester city gives me result manchester united hull city conventry city etc

below is my query

SELECT DISTINCT * FROM news WHERE MATCH (title, description) AGAINST (:search)
4

1 回答 1

1

是的,你必须添加全文索引看看这个,然后写下类似的东西:

SELECT * FROM patient_db WHERE MATCH (Name, id_number) AGAINST ('+first_word +second_word +third_word' IN BOOLEAN MODE);

于 2013-07-21T17:57:16.123 回答