On Nov 14, 2006, at 4:08 AM, Heikki Doeleman wrote:
thanks for pointing out these, however neither seems to do exactly
what I
want, i.e. highlight a phrase when a phrase search was done.
A technique I've employed for a client is to convert a general Query
object into a SpanQuery, and created custom code to walk the spans,
via SpanQuery.getSpans(), to put markers around them (such as <span
class="highlight">....</span>).
At this point the code is not public domain, though it is not
particularly sophisticated either. There may be some examples that
have floated past this list in the past of SpanQuery highlighting?
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]