RE: Highlighting issue with Solr 3.1

2011-05-17 Thread Nemani, Raj
Thank you, so much!

That was it.  

Thanks again
Raj


-Original Message-
From: Koji Sekiguchi [mailto:k...@r.email.ne.jp] 
Sent: Monday, May 16, 2011 8:45 PM
To: solr-user@lucene.apache.org
Subject: Re: Highlighting issue with Solr 3.1

(11/05/17 3:27), Nemani, Raj wrote:
> All,
>
>
>
> I have just installed Solr 3.1 running on Tomcat 7.  I am noticing a possible 
> issue with Highlighting.  I have a filed in my index called "story".  The 
> solr document that I am testing with the data in the story field starts with 
> the following snippet (remaining data in the field is not shown to keep 
> things simple)
>
>
>
> EN AMÉRICA LATINA,
>
>
>
> When I search for "america" with the highlighting enabled on the "story' 
> field, here is what I get in my "highlighting" section of the response.  I am 
> using the "ASCIIFoldingFilterFactory" to make my searches accent insensitive.
>
>
>
>  name="story"><p><a idref="0" 
> /></p><p>ENAMÉRICA  LATINA, SE HAN PRODUCIDO 
> AVANCES, CON RESPECTO A LA PROTECCIÓN.  The problem is 
> the encode html tags before the  showing up as raw html tags (because of 
> the encoding) on my search results page.  Just to make sure, I do want the 
> html to be interpreted as html not as text.  In this particular situation I 
> am not worried about the dangers of allowing such behavior.
>
>
>
> The same test performed on the same data running on 1.4.1 index does not 
> exhibit this behavior.
>
>
>
> Any help is appreciated.  Please let me know if I need to post my field type 
> definitions (index and query) from the SolrConfig.xml for the "story" field.
>
>
>
> Thanks in advance
>
>
>
> Raj
>
>

I bet you have an encoder setting in your solrconfig.xml:



If so, try to comment it out.

Koji
-- 
http://www.rondhuit.com/en/


Re: Highlighting issue with Solr 3.1

2011-05-16 Thread Koji Sekiguchi

(11/05/17 3:27), Nemani, Raj wrote:

All,



I have just installed Solr 3.1 running on Tomcat 7.  I am noticing a possible issue with 
Highlighting.  I have a filed in my index called "story".  The solr document 
that I am testing with the data in the story field starts with the following snippet 
(remaining data in the field is not shown to keep things simple)



EN AMÉRICA LATINA,



When I search for "america" with the highlighting enabled on the "story' field, here is what I get 
in my "highlighting" section of the response.  I am using the "ASCIIFoldingFilterFactory" to 
make my searches accent insensitive.



ENAMÉRICA LATINA, SE HAN PRODUCIDO AVANCES, CON RESPECTO A LA PROTECCIÓN. The problem is the encode html tags before the showing up as raw html tags (because of the encoding) on my search results page. Just to make sure, I do want the html to be interpreted as html not as text. In this particular situation I am not worried about the dangers of allowing such behavior. The same test performed on the same data running on 1.4.1 index does not exhibit this behavior. Any help is appreciated. Please let me know if I need to post my field type definitions (index and query) from the SolrConfig.xml for the "story" field. Thanks in advance Raj I bet you have an encoder setting in your solrconfig.xml: If so, try to comment it out. Koji -- http://www.rondhuit.com/en/


Highlighting issue with Solr 3.1

2011-05-16 Thread Nemani, Raj
All,

 

I have just installed Solr 3.1 running on Tomcat 7.  I am noticing a possible 
issue with Highlighting.  I have a filed in my index called "story".  The solr 
document that I am testing with the data in the story field starts with the 
following snippet (remaining data in the field is not shown to keep things 
simple)

 

EN AMÉRICA LATINA, 

 

When I search for "america" with the highlighting enabled on the "story' field, 
here is what I get in my "highlighting" section of the response.  I am using 
the "ASCIIFoldingFilterFactory" to make my searches accent insensitive.  

 

EN AMÉRICA LATINA, SE HAN PRODUCIDO AVANCES, CON RESPECTO A LA PROTECCIÓN. The problem is the encode html tags before the showing up as raw html tags (because of the encoding) on my search results page. Just to make sure, I do want the html to be interpreted as html not as text. In this particular situation I am not worried about the dangers of allowing such behavior. The same test performed on the same data running on 1.4.1 index does not exhibit this behavior. Any help is appreciated. Please let me know if I need to post my field type definitions (index and query) from the SolrConfig.xml for the "story" field. Thanks in advance Raj