cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cyril Vidal" <>
Subject highlighting with Lucene
Date Mon, 10 Feb 2003 12:21:24 GMT

 I have a question about using highlighting with Lucene.
What I only want to do:
start from an xml document, by example:
This is a beautiful yellow flower

that I have first indexed in Lucene's index.

 And when making a query such : flower:yellow
get an XML document from the following form:

This is a beautiful <em>yellow</em> flower

I don't want ANYsearch function, but just gain benefit from the highlight
function in Lucene.

At first glance, I think it's quite a easy task:
1°) Download the java classes from Maik Screiber, make the few modifications
on Lucene's code.
2°) Compile the Highlight Transformer java class from article
3°) Write my sitemap, as written in the same article:

   pool-grow="2" pool-max="16" pool-min="2"

<map:match pattern="flora">
    <map:generate type="file"
    <map:transform type="highlight" />

And when pointing to the url:

I should have the desired document:
This is a beautiful <em>yellow</em> flower

Is this right, or highlighting is a much more difficult task?

Thanks for your response,

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message