Forum Moderators: coopster
quick question, how to do search result preview like google does?
------
[link_to_result_page]
word word.... word word [highlight_keyword] word word...
[Revelance]
------
Of course the page is full-text-search indexed. But i cant really understand how to select just 10 words from the whole indexed site with the found phrase...
Some guidelines would be great!
i get indexed content from db
parse it with php
I found it a bit lacky 'couse indexed content are long texts and if search will return like 20 result, parsing those with php will be like parsing 20 articles...
Maybe there are more suitable solution when im already matching string in query...