Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 72945 invoked from network); 2 Jan 2007 17:16:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2007 17:16:42 -0000 Received: (qmail 73767 invoked by uid 500); 2 Jan 2007 17:16:48 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 73744 invoked by uid 500); 2 Jan 2007 17:16:47 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 73735 invoked by uid 99); 2 Jan 2007 17:16:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 09:16:47 -0800 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HELO_DYNAMIC_SPLIT_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of thorsten.scherler.ext@juntadeandalucia.es designates 217.12.18.114 as permitted sender) Received: from [217.12.18.114] (HELO 114.zone-217.12.18.juntadeandalucia.es) (217.12.18.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 09:16:38 -0800 Received: from [10.240.216.71] (helo=mail.juntadeandalucia.es) by guadix3.juntadeandalucia.es with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1H1nFJ-0000aC-CN for solr-user@lucene.apache.org; Tue, 02 Jan 2007 18:16:17 +0100 Received: from [10.240.216.71] (helo=[10.240.194.36]) by mail.juntadeandalucia.es with esmtpa (Exim 4.60) (envelope-from ) id 1H1nFE-0005Xr-Qw for solr-user@lucene.apache.org; Tue, 02 Jan 2007 18:16:12 +0100 Subject: How to tell the highlighter not to escape? From: Thorsten Scherler To: solr-user@lucene.apache.org Content-Type: text/plain Date: Tue, 02 Jan 2007 18:16:31 +0100 Message-Id: <1167758192.8791.43.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.4 (-) X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I am playing around with the highlighter and found that all highlight terms get escaped. I mean solr will return <em>TERM</em> and not TERM I am not sure where this escaping is happening but I would need the highlighting to NOT escape the hl.simple.pre and hl.simple.post tag since it is horror to work with cdata sections in xsl. I had a look in the lucene highlighter and it seem that it does not escape the tags. Can somebody point me to code which is responsible for escaping and maybe give me a tip how I can patch to make it configurable. TIA salu2