From java-user-return-28499-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Wed Jun 06 18:07:49 2007 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 85947 invoked from network); 6 Jun 2007 18:07:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 18:07:48 -0000 Received: (qmail 97691 invoked by uid 500); 6 Jun 2007 18:07:44 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 97641 invoked by uid 500); 6 Jun 2007 18:07:44 -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 97628 invoked by uid 99); 6 Jun 2007 18:07:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 11:07:44 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [168.144.250.211] (HELO xsmtp01.mail2web.com) (168.144.250.211) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 11:07:40 -0700 Received: from [10.5.14.9] (helo=exfe04.ad2.softcom.biz) by xsmtp01.mail2web.com with esmtp (Exim 4.63) (envelope-from ) id 1Hvzuf-00088m-5j for java-user@lucene.apache.org; Wed, 06 Jun 2007 14:07:19 -0400 Received: from CL4EXBE03.ad2.softcom.biz ([10.5.13.16]) by exfe04.ad2.softcom.biz with Microsoft SMTPSVC(6.0.3790.1830); Wed, 6 Jun 2007 14:09:06 -0400 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_01C7A865.A90B9800" Date: Wed, 6 Jun 2007 14:06:24 -0400 Message-ID: <18D8E943D728594C864C7AA427FDC6220FA9C975@CL4EXBE03.ad2.softcom.biz> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Case Insensitive but not Tokenized Thread-Index: AceoZWT8sLFjEUHrT3ay049llaBm1g== From: "Anna Putnam" To: X-OriginalArrivalTime: 06 Jun 2007 18:09:06.0072 (UTC) FILETIME=[C56C4980:01C7A865] X-Spam-Relays-External: [ ip=10.5.14.9 rdns= helo=exfe04.ad2.softcom.biz by=xsmtp01.mail2web.com ident= envfrom=anna@sendmemobile.com intl=0 id=1Hvzuf-00088m-5j auth= ] [ ip=10.5.13.16 rdns= helo=CL4EXBE03.ad2.softcom.biz by=exfe04.ad2.softcom.biz ident= envfrom= intl=0 id= auth= ] X-Spam-Relays-Internal: X-Spam-Relays-Untrusted: X-Spam-Relays-Trusted: [ ip=10.5.14.9 rdns= helo=exfe04.ad2.softcom.biz by=xsmtp01.mail2web.com ident= envfrom=anna@sendmemobile.com intl=0 id=1Hvzuf-00088m-5j auth= ] [ ip=10.5.13.16 rdns= helo=CL4EXBE03.ad2.softcom.biz by=exfe04.ad2.softcom.biz ident= envfrom= intl=0 id= auth= ] Subject: Case Insensitive but not Tokenized X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C7A865.A90B9800 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am trying to implement a prefix query search where I want the searching to be case insensitive but not tokenized (I want to preserve exact phrases). =20 =20 For now, I am storing both the exact phrase (as is, for retrieval) and the string lower-cased (to search against) with no analyzers in the index. When I search, I lower-case my query string and search against my lower-cased index, I give the matching exact phrase back to the user. This doesn't seem like the best approach but I can't seem to make it work any other way. Any suggestions? =20 Thanks in advance. ------_=_NextPart_001_01C7A865.A90B9800--