I made a search system for my website.
Let’s say there are 5 datas in the database.
- Apple macbook air review
- Apple iMac review
- Apple iPhone review
- iPhone 4 unboxing review
- iPhone jailbreak review
A user types ‘iphone review’ on the search input.
I would like to show the result like this
- Apple iPhone review
- iPhone 4 unboxing review
- iPhone jailbreak review
I could sucessfully break the search words and used boolean mode.
SELECT * FROM BOOKMARK WHERE MATCH title AGAINST ('iphone* review*' IN BOOLEAN MODE)
But it won’t show the result like above.
It searchs for data that have iphone or review word.
Can you help me to figure this problem?
You can try this query:
This one worked for me.