php - Mysql similar text search -
i have mysql table below-
------------ keyword_text ------------ lego kit kids lego kit kids lego kit kids +more different text entry
as can see, keyword_text in above example similar. want find match of above keywords. example if search lego kit kids , return me of 3 keyword_text.
input: lego kit kids output: lego kit kids lego kit kids lego kit kids or mysql resource use mysql_fetch_assoc
the table has approximately 1m entry , full text index added keyword_text. there mysql query or similar way using php?
thanks help
one approach @ levenshtein distance between search term , keyword list. there quiet few examples of how implement in mysql, eg. here
because have such large catalogue, need @ implementing filter first (perhaps based on 'like' lookup) not measuring distance 1m rows.
if rank results distance should able sort results relevancy search.
Comments
Post a Comment