• Post Reply Bookmark Topic Watch Topic
  • New Topic

Lucene highlighter for multiple words  RSS feed

 
Shrinath M Aithal
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when we search phrase in text . the result is :


How do I make the highlighter work with multiple words ?
I am using phraseQuery for searching, which searches just fine. But highlighting fails

Any advice/suggestion/example ?
 
Shrinath M Aithal
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After a lot of googling and hair pulling, I got it working.

This solved my problem about wild card highlighting
http://www.gossamer-threads.com/lists/lucene/java-user/116172?search_string=highlight%20wildcard;#116172

Specifically, setting up the queryScorer with this :
That did the job.

 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!