Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58C3710252 for ; Wed, 18 Sep 2013 03:20:51 +0000 (UTC) Received: (qmail 25634 invoked by uid 500); 18 Sep 2013 03:20:48 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 25597 invoked by uid 500); 18 Sep 2013 03:20:48 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 25589 invoked by uid 99); 18 Sep 2013 03:20:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 03:20:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of SRS0=TEZSNr=S6=basetechnology.com=jack@yourhostingaccount.com designates 65.254.253.98 as permitted sender) Received: from [65.254.253.98] (HELO mailout12.yourhostingaccount.com) (65.254.253.98) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 03:20:40 +0000 Received: from mailscan14.yourhostingaccount.com ([10.1.15.14] helo=mailscan14.yourhostingaccount.com) by mailout12.yourhostingaccount.com with esmtp (Exim) id 1VM8JP-0003My-Fr for java-user@lucene.apache.org; Tue, 17 Sep 2013 23:20:19 -0400 Received: from impout01.yourhostingaccount.com ([10.1.55.1] helo=impout01.yourhostingaccount.com) by mailscan14.yourhostingaccount.com with esmtp (Exim) id 1VM8JP-0004PJ-Ae for java-user@lucene.apache.org; Tue, 17 Sep 2013 23:20:19 -0400 Received: from authsmtp04.yourhostingaccount.com ([10.1.18.4]) by impout01.yourhostingaccount.com with NO UCE id STLK1m00105G96J01TLKpP; Tue, 17 Sep 2013 23:20:19 -0400 X-Authority-Analysis: v=2.0 cv=EJGEIilC c=1 sm=1 a=UdCbmyego4VUa/xJBgcoFg==:17 a=aQzbgH187woA:10 a=bHtpxH4f5wYA:10 a=3jZET7lWBKwA:10 a=8nJEP1OIZ-IA:10 a=jvYhGVW7AAAA:8 a=BOHSQ5BK7fQA:10 a=mV9VRH-2AAAA:8 a=2avk_p-qvnSIuMOXoewA:9 a=wPNLvfGTeEIA:10 a=ZyCNx9LFiA0kwLx3ZJIN5w==:117 X-EN-OrigOutIP: 10.1.18.4 X-EN-IMPSID: STLK1m00105G96J01TLKpP Received: from 207-237-114-232.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com ([207.237.114.232]:64468 helo=JackKrupansky) by authsmtp04.yourhostingaccount.com with esmtpa (Exim) id 1VM8JO-0000am-QZ for java-user@lucene.apache.org; Tue, 17 Sep 2013 23:20:18 -0400 Message-ID: <3360290B479D40E7B42242F9DEBDADDE@JackKrupansky> From: "Jack Krupansky" To: References: In-Reply-To: Subject: Re: Can you escape characters you don't want the analyzer to modify Date: Tue, 17 Sep 2013 23:20:05 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-EN-UserInfo: e0a4b55451ed9f27313ebf02e3d4348d:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: jack@basetechnology.com Sender: "Jack Krupansky" X-EN-OrigIP: 207.237.114.232 X-EN-OrigHost: 207-237-114-232.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com X-Virus-Checked: Checked by ClamAV on apache.org It sounds like you either need to have a custom analyzer or a field-aware analyzer. -- Jack Krupansky -----Original Message----- From: Scott Smith Sent: Tuesday, September 17, 2013 4:26 PM To: java-user@lucene.apache.org Subject: Can you escape characters you don't want the analyzer to modify Suppose I have a string like "ab@cd%d". My analyzer will turn this into "ab cd d". Can I pass it "ab\@cd\%d" and force it to treat it as a single word? I want to use the Query parser, but I don't want it messing with fields that have not been analyzed. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org