• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Lucene highlighter for multiple words  RSS feed

 
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.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!