Gossamer Forum
Home : General : Perl Programming :

search and return an excerpt

Quote Reply
search and return an excerpt
Dear All,

I would like to have LinkSql to return an excerpt instead of the whole description of a link in the search results, as Google does. That is to extract about 10 words (or 50 characters) up- and down-stream the matched words which is bolded. For example I search google with linksql and got this result:

Home: Links SQL: Products: Version 1.x: linksql cannot run keyword banner
search , but links 2.0 can run it !! Print Thread. haharara2000 ...


I thought of using pattern matching, but it doesn't give the matched position, then how can I know where the excerpt starts and ends.

Your thoughts is greatly appreciated.

Long