Thanks for the response. I am actually enclosing the text with CDATA. Here's a 
sample of document that passing into the update:

<add>
<doc>
  <field name="id">emailtest3</field>
  <field name="details"><![CDATA[
 

Thanks a lot.

Thanks,
Jim Petersi

________________________________________
From: Jason Ravi 
To: Ran Morrison
Subject: RE: Need your Suggestion on how to add a URI in Tealeaf



]]></field>
  <field name="application">TEALEAF</field>
  <field name="environment">PROD</field>
  <field name="title">Need your Suggestion on how to add a URI in 
Tealeaf</field>
  <field name="issue">How do I add a URI to tealeaf</field>
  <field name="resolution">see details</field>
  <field name="submitter">Sharath Pasupunuti</field>
  <field name="dateSubmitted">2009-09-22T23:59:59Z</field>
  <field name="content_type">email</field>
</doc>


</add>

> From: erik.hatc...@gmail.com
> To: solr-user@lucene.apache.org
> Subject: Re: Text formatting lost
> Date: Wed, 16 Dec 2009 03:35:19 -0500
> 
> Maybe the XMLification of your text is adjusting the whitespace?   Try  
> enclosing your text with CDATA first.
> 
>       Erik
> 
> On Dec 16, 2009, at 1:34 AM, Mike Aymard wrote:
> 
> >
> > Hi,
> >
> > I'm a newbie and have a question about the text that is stored and  
> > then returned from a query. The field in question is of type "text",  
> > is indexed and stored. The original text included various blank  
> > lines (line feeds), but when the text field is returned as the  
> > result from a query, all of the blank lines and extra spaces have  
> > been removed. Since I am storing the content for the purpose of  
> > displaying, I need the original format to be preserved. Is this  
> > possible? I tried changing it to indexed="false" and using a  
> > copyvalue to copy it to the general text field for indexing, but  
> > this didn't help.
> >
> > Thanks!
> > Mike
> >                                     
> > _________________________________________________________________
> > Hotmail: Trusted email with powerful SPAM protection.
> > http://clk.atdmt.com/GBL/go/177141665/direct/01/
> 
                                          
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/

Reply via email to