Hi All;
I have written a basic search stored procedure to search through content areas of my website contained within columns of type 'text'.
What I am trying to do however is return to return a grouping of words around the matched text to display as a teaser on the frontend.
So if one searches for the word 'moon' and it is found within the text it would grab something like the closest 10 words on either side of the matched text like so:
"..I really hope this search thing works out for me. The moon is a really beautiful celestial body..."
I will seriously worship anyone who can tell me how I might do this! :-D
Sean.
I have written a basic search stored procedure to search through content areas of my website contained within columns of type 'text'.
What I am trying to do however is return to return a grouping of words around the matched text to display as a teaser on the frontend.
So if one searches for the word 'moon' and it is found within the text it would grab something like the closest 10 words on either side of the matched text like so:
"..I really hope this search thing works out for me. The moon is a really beautiful celestial body..."
I will seriously worship anyone who can tell me how I might do this! :-D
Sean.