Hi,

I am using the following two parameters to highlight the hits.

"hl.simple.pre=" + URLEncoder.encode("<b><u>")
"hl.simple.post=" + URLEncoder.encode("</u></b>")

This seems to work. However, there is a bit of trouble when the text itself contains html markup.

For example, I have indexed a document with the following text in it.
=======
something here...
<choice minOccurs="1" maxOccurs="unbounded">xyz</choice>
something here..
=======

When I search for the keyword choice, what it does is, it inserts "<b><u>" just before the word choice and "</u></b>" immediately after the word choice. It results into something like below:

<<b><u>choice</b></u> minOccurs="1" maxOccurs="unbounded">xyz</<b><u>choice</u></b>>


I would like it to be something like:

&lt;<b><u>choice</b></u> minOccurs="1" maxOccurs="unbounded"&gt;xyz/<b><u>choice</u></b>&gt;

Is there any way to do it such that the highlight content is encoded as HTML but the prefix and suffix are not?

Thanks,
Niraj



When I issue a query, it returns all the corret

Reply via email to