Thanks Erick for your reply.. I am using velocity template for display the result.
#field('SDtext') ==> here SDtext is my field. here is my field definition in schema.xml <field name="Resolution" type="text_en" indexed="true" stored="true" /> <field name="SDtext" type="string" indexed="false" stored="true" multiValued="false"/> <copyField source="Resolution" dest="SDtext"/> <fieldType name="text_en" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true"> <analyzer type="index"> <charFilter class="solr.PatternReplaceCharFilterFactory" pattern="\n" replacement="< br >" /> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_en.txt"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> <filter class="solr.PorterStemFilterFactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_en.txt" /> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> <filter class="solr.PorterStemFilterFactory"/> <filter class="solr.TrimFilterFactory" /> </analyzer> </fieldType <b>Please guide what am I doing wrong ??* Thanks in advance -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-retain-the-original-format-of-input-document-in-search-results-in-SOLR-Tomcat-tp4102327p4103276.html Sent from the Solr - User mailing list archive at Nabble.com.