2

Two rows in the my database have the following data:

brand       | product                     | style
=================================================
Doc Martens | Doc Martens 1460 Boots      | NULL
NewBalance  | New Balance WR1062 SG Width | NULL

Mininum word length is set to 3, and a FULLTEXT index is created across all the three columns above.

When I run a search for IS BOOLEAN matches for +doc in the index, I get the first row returned as a result. When I search for +new, I get no results.

Can someone explain why?

Thanks.

1 Answer 1

3

It called FULLTEXT because of it indexes whole words. so for searching words started with "New" you have to put "astrisk" sign in the end:

MATCH (`brand`) AGAINST ('new*')

More detailed here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.