I have tried to fetch a sql row that matches the most similar sentence entered by the user. For example user types "Are you having fever"
and mysql table has records namely 1: "having, fever". 2: "fever"
It should fetch the number 1 record with it being the nearest match.
We have tried using LIKE, MATCH query like below one, but to no avail.
SELECT * FROM mbrace_pd.mbrace_pd WHERE MATCH(input) AGAINST ('Are you having fever');
How to do this?
Update: Okay it has started working partly. The "fever text" has started working. I added who,you content to the table and tried fetching it by typing who are you. But it did not work.