lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pasha Bizhan" <fc...@ok.ru>
Subject RE: highlight the search word
Date Sun, 15 Aug 2004 11:06:26 GMT
Hi, 

> From: Erik Hatcher [mailto:erik@ehatchersolutions.com] 

> > How to highlight the search word
> 
> See Highlighter here:
> 
> 	http://jakarta.apache.org/lucene/docs/lucene-sandbox/
> 

Btw, if you want to highlight all words in all the document pass to 
getBestFragment funciton such params:
	text - text
	highlightFragmentSizeInBytes - the length of the text
	maxNumFragmentsRequired - 1
	fragmentSeparator - ''

Pasha Bizhan
http://lucenedotnet.com


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


Mime
View raw message