Mark,
Thank you for your answer.
Andreas
-----Original Message-----
From: Mark Miller [mailto:markrmiller@gmail.com]
Sent: Friday, March 02, 2007 10:07 AM
To: java-user@lucene.apache.org
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@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
|