SELECT DESCP, MATCH (DESCP, NAME) AGAINST ('slice' IN BOOLEAN MODE ) AS Score FROM products WHERE MATCH (DESCP, NAME) AGAINST ('slice')
Above is the query I have as an example.
The results I get are:
- Slice Decorated Chocolate Cake, Chocolatec 1
- Cake Slice 1
Kraft Natural Big Slice Aged Swiss Cheese 1
SELECT DESCP, MATCH (DESCP, NAME) AGAINST ('slices' IN BOOLEAN MODE ) AS Score FROM products WHERE MATCH (DESCP, NAME) AGAINST ('slices')
This query results in:
- CHEESE SLICES 1
- Kraft Natural Sliced Extra Thin Swiss Cheese - 8 o 1
- Sargento Ultra Thin Sliced Baby Swiss Cheese - 18 1
- Sargento Natural Deli Style Sliced Swiss Cheese - 1
- Kraft Natural Big Slice Aged Swiss Cheese - 8 oz 1
- Sargento Sliced Muenster Natural Cheese 8 oz. 1
- Kraft Sliced Deli Deluxe American Cheese 16 Slices... 1
So my question is:
How do I match a fulltext match that will find all the words for slice, sliced, slices, etc. I am taking user input from a text box and the expectation is that if someone searched for "slice" or "slices" that they get all the correct results.