Re: Highlight - SimpleSpanFragment

2009-06-13 Thread Radha Sreedharan
Currently I am following a long drawn approach where 1) I find index of the matching text in the original 2) For a list of words to the left of index and to the right of index+length of matching text 3) Then a pick some words from the 1st list and prepend to my matching text text and from my secon

Highlight - SimpleSpanFragment

2009-06-12 Thread Radha Sreedharan
Hi all, I am using *SimpleSpanFragment *to find the words a few positions around the match. I am specifying the number of characters, which is the second parameter of the *SimpleSpanFragment *constructor . However, it always gives the words to the right of the match and does not give me the word