*Only* the matching whole sentence highlighted

2010-01-08 Thread Li Leon
Hi all, I was able to get a whole sentence(including stop words) highlighted with "StandardAnalyzer" and an empty stop words String[]. The current issue I'm having is that not only the whole sentence got highlighted but those tokens partially match with the sentence also highlighted. I tried to u

Highlight the whole sentence instead of the partial matching terms

2010-01-10 Thread Li Leon
*Hi all,* ** *I wanted to use to following code to highlight the whole sentence with "\"something\"~n" to be parsed.* ** *The QueryParser part worked well, but when integrated with Highlighter, it ended up with exception. * ** *Does anyone have any clue as I'm investigating this.* ** ** *Thanks,* *

Re: Highlight the whole sentence instead of the partial matching terms

2010-01-10 Thread Li Leon
Just figured out, missed "lucene-memory-2.4.1.jar" external jar inclusion. With that jar included, "\"Giving and\"~11" only got "Giving" & "and" highlighted but not the whole sentence, any ideas? Thanks, 2010/1/11 Li Leon > *Hi all,* &