views:

113

answers:

0

I want to display my search results in a google-like way:

<title>
...<snippet>...<snippet>...<snippet>...
<link>

I'm concatenating the highlighted snippets, but I need to know when the snippets are at the beginning of the end of the content field (do decide whether to put the starting/ending "..."'s in)

Does anyone know how I can get the location of the snippet within the field that it's highlighting?

Thanks!