
Andreas.Guther at markettools
Mar 3, 2007, 7:11 PM
Post #3 of 3
(565 views)
Permalink
|
|
RE: Can Highlighter handle multiple word terms?
[In reply to]
|
|
Mark, Thank you for your answer. Andreas -----Original Message----- From: Mark Miller [mailto:markrmiller [at] gmail] Sent: Friday, March 02, 2007 10:07 AM To: java-user [at] lucene Subject: Re: Can Highlighter handle multiple word terms? What fragment size are you using? Have you tried the null fragmenter? Are you using the QueryScorer that you can pass a field name to restrict highlighting to a certain field? Do you have any example code of what you are attempting? Have you looked at the test code for examples of how to use the Highlighter? - Mark Andreas Guther wrote: > Hi, > > > > I am using the Highlighter class to highlight my search results. So far > my observation is that the Highlighter does not highlight terms with > multiple words in it. > > > > For example if I have a text like "This is an example text for the > highlighter" and my search term is "example highlighter" than I would > expect to get back from the Highlighter the following: "This is an > <B>example</B> text for the <B>highlighter</B>". So far the highlighter > only returns an empty String. I am passing in the StandardAnalyzer. > > > > It also looks to me as if the Highlighter cannot handle a term like > "contents:example". > > > > > > I wonder if I am missing here something or if this is a limitation of > the Highlighter. > > > > > > Can some one enlighten me? > > > > Andreas > > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe [at] lucene For additional commands, e-mail: java-user-help [at] lucene --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe [at] lucene For additional commands, e-mail: java-user-help [at] lucene
|