Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 934 invoked from network); 10 Feb 2011 06:16:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Feb 2011 06:16:07 -0000 Received: (qmail 49163 invoked by uid 500); 10 Feb 2011 06:16:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 48779 invoked by uid 500); 10 Feb 2011 06:16:02 -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 48771 invoked by uid 99); 10 Feb 2011 06:16:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 06:16:01 +0000 X-ASF-Spam-Status: No, hits=0.2 required=5.0 tests=ASF_LIST_OPS,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Lisheng.Zhang@broadvision.com designates 139.56.8.26 as permitted sender) Received: from [139.56.8.26] (HELO mail-fw.broadvision.com) (139.56.8.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 06:15:55 +0000 X-ASG-Debug-ID: 1297318534-3e91000c0000-H1Y1KX X-Barracuda-URL: http://mail-fw.broadvision.com:8000/cgi-bin/mark.cgi Received: from RW-EX2003.BROADVISION.COM (localhost [127.0.0.1]) by mail-fw.broadvision.com (Spam Firewall) with ESMTP id 82CAE8371A; Wed, 9 Feb 2011 22:15:34 -0800 (PST) Received: from RW-EX2003.BROADVISION.COM ([10.10.160.33]) by mail-fw.broadvision.com with ESMTP id 5xr9UXHVIy03d1JI; Wed, 09 Feb 2011 22:15:34 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CBC8E9.ED40CE57" X-ASG-Orig-Subj: RE: lucene 3.0.3 | phrase query problem Subject: RE: lucene 3.0.3 | phrase query problem Date: Wed, 9 Feb 2011 22:15:34 -0800 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: lucene 3.0.3 | phrase query problem Thread-Index: AcvI5L+cu3x6b/aAQRee0H1dsgQPOwABCibw From: "Zhang, Lisheng" To: , X-Barracuda-Connect: UNKNOWN[10.10.160.33] X-Barracuda-Start-Time: 1297318534 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at broadvision.com ------_=_NextPart_001_01CBC8E9.ED40CE57 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I think using Field.Index.NOT_ANALYZED means ignoring StandardAnalyzer, = so we index "sql. server" as one word. You may use luke to see how this field = is indexed. =20 In this case we can only search whole term (without case change even), = if using the StandardAnalyzer to analyze "sql. server" we should not get result? =20 Best regards, Lisheng -----Original Message----- From: Ranjit Kumar [mailto:Ranjit.Kumar@otssolutions.com] Sent: Wednesday, February 09, 2011 9:39 PM To: java-user-help@lucene.apache.org; java-user@lucene.apache.org Subject: lucene 3.0.3 | phrase query problem Hi, I am using SpanQuery and SpanNearQuery to get phrase query like "Sql = Server". In my text file in which I am searching, it is present like (sql. = server) mean 'sql dot server' which is not a span like "Sql Server". While searching for phrase query "Sql Server". It gives result for (sql. = server) which is not correct. I am using StandardAnalyzer on both side while creating index or = searching on files. While creating index Field.Index.NOT_ANALYZED is = used. =20 Please, give your suggestion !!! =20 =20 Thanks & Regards, Ranjit Kumar =20 Associate Software Engineer =20 cid:image002.jpg@01CB7089.C0069B40 =20 US: +1 408.540.0001=20 UK: +44 208.099.1660 India: +91 124.474.8100 | +91 124.410.1350 FAX: +1 408.516.9050 http://www.otssolutions.com =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = Private, Confidential and Privileged. This e-mail and any files and = attachments transmitted with it are confidential and/or privileged. They = are intended solely for the use of the intended recipient. The content = of this e-mail and any file or attachment transmitted with it may have = been changed or altered without the consent of the author. If you are = not the intended recipient, please note that any review, dissemination, = disclosure, alteration, printing, circulation or Transmission of this = e-mail and/or any file or attachment transmitted with it, is prohibited = and may be unlawful. If you have received this e-mail or any file or = attachment transmitted with it in error please notify OTS Solutions at = info@otssolutions.com = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = ------_=_NextPart_001_01CBC8E9.ED40CE57--