ixxalnxxi
05-24-2008, 10:49 PM
using mysql version 5.0, i have a field in my database which holds a name, 'My Animal Friends'
i'd like for the results to return the row containing 'My Animal Friends' if the user searches 'animals', however it does not work with my current query. (searching 'animal' does work, however)
how can i change my query so that it is more sensitive to the point 'animals' can return a score for 'My Animal Friends'? here is my following query:
SELECT *,
MATCH (Name)
AGAINST ('+\"$search\"' IN BOOLEAN MODE)
FROM Products
WHERE
MATCH (Name)
AGAINST ('+\"$search\"' IN BOOLEAN MODE)
i'd like for the results to return the row containing 'My Animal Friends' if the user searches 'animals', however it does not work with my current query. (searching 'animal' does work, however)
how can i change my query so that it is more sensitive to the point 'animals' can return a score for 'My Animal Friends'? here is my following query:
SELECT *,
MATCH (Name)
AGAINST ('+\"$search\"' IN BOOLEAN MODE)
FROM Products
WHERE
MATCH (Name)
AGAINST ('+\"$search\"' IN BOOLEAN MODE)