lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koji Sekiguchi <k...@r.email.ne.jp>
Subject Re: Highlighting a phrase with "Single" <SPAN>
Date Wed, 06 Apr 2011 09:08:17 GMT
(11/04/06 14:01), shrinath.m wrote:
> If there is a phrase in search, the highlighter highlights every word
> separately..
> Like this :
>
>
> I love Lucene
>
>
> Instead what I want is like this :
>
>
> I love Lucene
>

Not sure my mailer problem or not, I don't see the difference between above two.
But reading the context, you want <b>I love lucene</b> instead of
<b>I</b> <b>love</b> <b>lucene</b>, right?

FastVectorHighlighter can solve your problem.

https://builds.apache.org/hudson/job/Lucene-trunk/javadoc/all/org/apache/lucene/search/vectorhighlight/package-summary.html#package_description

Koji
-- 
http://www.rondhuit.com/en/

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message