When we send a query to get the information about a component which has ContentXml from apache solr we got the result as a string value
<result name="response" numFound="1" start="0">
<doc>
<str name="ContentXml"> RecommendedHotels xmlns uuid:fef103a8-f01e-451d-8f37-8e41124473e8
city href tcm:4-16808-1024 title cityTitle xlink http://www.w3.org/1999/xlink test city
RecommendedHotels
</str>
</doc>
</result>
contentxml in tridion:
<RecommendedHotels xmlns="uuid:fef103a8-f01e-451d-8f37-8e41124473e8">
<city xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="tcm:1-1111-1024" xlink:title="city title">test</city>
</RecommendedHotels>
In solr apache schema.xml we have type as text.
<field name="contentXml" type="text" indexed="true" stored="true"/>
Is there any method that we can get the raw value of contentxml?