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 BFB01D575 for ; Wed, 14 Nov 2012 05:22:14 +0000 (UTC) Received: (qmail 94499 invoked by uid 500); 14 Nov 2012 05:22:12 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 94196 invoked by uid 500); 14 Nov 2012 05:22:10 -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 94137 invoked by uid 99); 14 Nov 2012 05:22:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2012 05:22:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of binlan@perimeterusa.com designates 165.212.64.22 as permitted sender) Received: from [165.212.64.22] (HELO gwo2.mbox.net) (165.212.64.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2012 05:21:59 +0000 Received: from gwo2.mbox.net (localhost [127.0.0.1]) by gwo2.mbox.net (Postfix) with ESMTP id 45029E2701C0 for ; Wed, 14 Nov 2012 05:21:38 +0000 (UTC) X-USANET-Received: from gwsecf02.mbox.net [165.212.64.40] by gwo2.mbox.net via mtad (C8.MAIN.3.82G) with ESMTP id 864qkNFVK3808Mo2; Wed, 14 Nov 2012 05:21:36 -0000 Received: from localhost (gwsecf02 [127.0.0.1]) by gwsecf02.mbox.net (Postfix) with ESMTP id 61B78410033 for ; Wed, 14 Nov 2012 05:21:36 +0000 (GMT) Received: by gwsecf02.mbox.net (Postfix, from userid 1272) id EB00341001D; Wed, 14 Nov 2012 05:21:35 +0000 (GMT) Received: from gwo2.mbox.net (gateout02.mbox.net [165.212.64.22]) by gwsecf02.mbox.net (Postfix) with ESMTP id BEDBC410033 for ; Wed, 14 Nov 2012 05:21:35 +0000 (GMT) X-USANET-Received: from gwo2.mbox.net [127.0.0.1] by gwo2.mbox.net via mtad (C8.MAIN.3.82G) with ESMTP id 836qkNFVE1408Mo2; Wed, 14 Nov 2012 05:21:30 -0000 X-USANET-Routed: 6 gwsout-disclaimer Q:watd X-USANET-Routed: 10 gwsout-externalarchive C:gwsarchive:625 jtx2rqdsj@incoming02.seccas.com X-USANET-Routed: 5 gwsout-gwsd Q:gwsd X-USANET-Routed: 21 gwsout-mailsafe R:gwsecf:25 X-USANET-Routed: 3 gwsout-vs Q:bmvirus X-USANET-GWS2-Tenant: perimeterusa.com Received: from S1P5HUB3.EXCHPROD.USA.NET [165.212.120.254] by gwo2.mbox.net via smtad (C8.MAIN.3.87X) with ESMTPS id XID654qkNFVf8839Xo2; Wed, 14 Nov 2012 05:21:30 -0000 X-USANET-Source: 165.212.120.254 OUT binlan@perimeterusa.com S1P5HUB3.EXCHPROD.USA.NET X-USANET-MsgId: XID654qkNFVf8839Xo2 Received: from mail-lb0-f176.google.com (209.85.217.176) by exchange.postoffice.net (10.120.223.33) with Microsoft SMTP Server (TLS) id 14.2.318.4; Wed, 14 Nov 2012 05:21:30 +0000 Received: by mail-lb0-f176.google.com with SMTP id k6so101977lbo.35 for ; Tue, 13 Nov 2012 21:21:28 -0800 (PST) Received: by 10.152.105.33 with SMTP id gj1mr23728048lab.49.1352870488002; Tue, 13 Nov 2012 21:21:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.18.71 with HTTP; Tue, 13 Nov 2012 21:20:57 -0800 (PST) From: Bin Lan Date: Wed, 14 Nov 2012 00:20:57 -0500 Message-ID: Subject: Changing behavior of StandardAnalyzer To: Content-Type: multipart/alternative; boundary="f46d040716e3dd502f04ce6db47f" X-Originating-IP: [209.85.217.176] X-Virus-Checked: Checked by ClamAV on apache.org --f46d040716e3dd502f04ce6db47f Content-Type: text/plain; charset="UTF-8" So currently, if I use StandardAnalyzer to construct a QueryParser, and pass tString "From: someone@gmail.com" to the parser, it returns a query which is "From: someone From: gmail.com". Is there easy way that I can change this so it returns "From: "someone gmail.com"" instead? We had a in-house Analyzer implementation, it used to do this on lucene 2.9, but somehow the behavior changes after we upgrade to 3.6.1. Regards -- Bin Lan Software Developer Perimeter E-Security O - (203)541-3412 Follow Us on Twitter: www.twitter.com/PerimeterNews Read Our Blog: security.perimeterusa.com/blog This message is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information of Perimeter Internetworking Corp. Any unauthorized review, use, copying, disclosure, or distribution is prohibited. If you are not the intended recipient, please immediately contact the sender by reply email and delete all copies of the original message. -- The sender of this email subscribes to Perimeter E-Security's email anti-virus service. This email has been scanned for malicious code and is believed to be virus free. For more information on email security please visit: http://www.perimeterusa.com/services/messaging This communication is confidential, intended only for the named recipient(s) above and may contain trade secrets or other information that is exempt from disclosure under applicable law. Any use, dissemination, distribution or copying of this communication by anyone other than the named recipient(s) is strictly prohibited. If you have received this communication in error, please delete the email and immediately notify our Command Center at 203-541-3444. --f46d040716e3dd502f04ce6db47f--