You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Karthik N S <ka...@controlnet.co.in> on 2005/01/03 04:44:37 UTC

RE: New Highlighter features + api

Hi

  Mark,

Apologies..........



Can u Please tell the form where to find the 
JavaDoc API for the Highlighter package u have created.


Thx in Advance
[ WISH U  AND THE FORM 'A HAPPY NEW YEAR']
KARTHIK




-----Original Message-----
From: markharw00d [mailto:markharw00d@yahoo.co.uk]
Sent: Monday, January 03, 2005 4:14 AM
To: Lucene Users List
Subject: New Highlighter features


The Highlighter package in CVS has been updated with the following new 
features:

* GradientFormatter is a new formatter that can be used to change the 
colour intensity of matching terms, based on their score. I have found 
this to be a useful way of visualizing the basis of query matches, 
especially when  the query was derived automatically eg in a 
"MoreLikeThis" style of query.

* The QueryScorer class has a new constructor that takes an IndexReader 
which is used to provide term scores based on scarcity (idf score).  
Using this with the new GradientFormatter ensures the most important 
terms are highlighted most strongly.

* New class "TokenSources" offers methods to produce a TokenStream from 
indexes using the new TermVector features (saving the cost of 
reanalyzing to produce TokenStreams for the highlighter).

TokenStreams. Formatters and Scorers are all pluggable elements of the 
main Highlighter class so these are just new extensions around the 
existing core functionality. See the Javadocs for further details on how 
to use these components..

Cheers
Mark

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


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