Search function with similarity function

OxisolfEsossy

New Member
The table name is 'pages'..I need to make a search function, where I can submit the field $_POST['search']['s_value'] and check if it is LIKE the fields 'emne' or 'tekst'..But in that matter I would also like, that my query is ordering by the percentage of matching.. So if I'm searching for "car rental" and I have a page which say "car rental has been easier over the past years" it is 100%.If it is possible, I would also like the search to make a 'teaser' with the first match of the text, where it is highlighted in a div with the class='search_highligthed_text' ..Is that in any way possible to create???
 
Back
Top