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,* > ** > *I wanted to use to following code to highlight the w

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

2010-01-11 Thread Sanne Grinovero
If you're searching for terms "giving" and "and", it will only highlight those terms, not the whole sentence.. that's how the highlighter is meant to work: highlight what the user did query. Also there's no built-in concept of sentence. regards, Sanne 2010/1/11 Li Leon : > Just figured out, misse