lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markharw...@yahoo.co.uk
Subject RE: highlight the search word
Date Sun, 15 Aug 2004 20:44:13 GMT
>>I ask because in your example i should calculate the size of the initial text in any
case.

No calculation required - just use a really big number, (eg Integer.MAX_VALUE). This  doesn't
 allocate any extra resources.

Your "highlightAll" method sounds like it might be a useful addition. This "how do I get all
fragments?" question comes up reasonably often.

Thanks
Mark



---------------------------------------------------------------------
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