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 Cyril Vidal <cy...@planetexml.com> on 2003/02/10 15:20:20 UTC

highlighting with Lucene and Cocoon

Hi,

I'd would like to perform highlighting with Lutece integrated in Cocoon.
Did someone already do the same task?

Basically, if I have a xml file such as the following:
<flower>
This is a great yellow flower
</flower>

I would like when pointing by example 
to http://localhost:8080/cocoon/flora?query=flower:yellow

to get an xml document like this:
<flower>
This a great <em>yellow</em> flower
</flower>

Any suggestions would help,
Thanks in advance,
Cyril.


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


RE : highlighting with Lucene and Cocoon

Posted by Martin Sevigny <se...@ajlsm.com>.
> I'd would like to perform highlighting with Lutece integrated
> in Cocoon. Did someone already do the same task?

Well SDX (an XML search engine based on both Cocoon and Lucene, see
http://sdx.culture.fr and http://savannah.gnu.org/projects/sdx/) does
that.

See in particular the class
fr.gouv.culture.sdx.search.lucene.highlight.LuceneTermHighlighter, or
the demo application (sdxworld) with an example of its use.

Martin Sévigny


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