Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 44037 invoked from network); 18 Aug 2005 20:21:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2005 20:21:12 -0000 Received: (qmail 65038 invoked by uid 500); 18 Aug 2005 20:21:08 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 65011 invoked by uid 500); 18 Aug 2005 20:21:07 -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 64998 invoked by uid 99); 18 Aug 2005 20:21:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2005 13:21:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2005 13:21:26 -0700 Received: by ehatchersolutions.com (Postfix, from userid 504) id 0963A13E2007; Thu, 18 Aug 2005 16:21:02 -0400 (EDT) Received: from [128.143.167.108] (d-128-167-108.bootp.Virginia.EDU [128.143.167.108]) by ehatchersolutions.com (Postfix) with ESMTP id 3D14613E2035 for ; Thu, 18 Aug 2005 16:20:52 -0400 (EDT) In-Reply-To: <33647.65.117.150.250.1124396164.squirrel@65.117.150.250> References: <33552.65.117.150.250.1124394618.squirrel@65.117.150.250> <20050818195258.99994.qmail@web31109.mail.mud.yahoo.com> <33647.65.117.150.250.1124396164.squirrel@65.117.150.250> Mime-Version: 1.0 (Apple Message framework v733) X-Priority: 3 (Normal) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <934C8604-7089-41DD-B07C-E6D29552F02D@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Case-sensitive search Date: Thu, 18 Aug 2005 16:20:49 -0400 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.733) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Aug 18, 2005, at 4:16 PM, tareque@controldocs.com wrote: > Thanks! I have used StopAnalyzer to index. Does it lower-case before > indexing? I don't touch the query string before sending for > searching, so > the query string is not lower-cases. Pretty much all built-in Lucene analyzers lower-case: http://svn.apache.org/repos/asf/lucene/java/trunk/src/java/org/ apache/lucene/analysis/StopAnalyzer.java (scroll to the bottom to see the tokenStream method - the heart of an analyzer) The exception is the WhitespaceAnalyzer, which is probably not what you want to use. You can write your own Analyzer (copy/paste one and remove the lowercasing filter - though some analyzers use a lowercasing tokenizer, not a filter). Erik > > >> The search really is case sensitive, it's just that all input is >> usually lower-cased, so it feels like it's case insensitive. In >> other >> words, don't lower-case your input before indexing, and don't >> lower-case your queries (i.e. pick an Analyzer that doesn't >> lower-case). >> >> Otis >> >> >> --- tareque@controldocs.com wrote: >> >> >>> Is there any way to do a case-sensitive search? >>> >>> Thanks >>> Tareque >>> ControlDOCS >>> >>> >>> -------------------------------------------------------------------- >>> - >>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>> For additional commands, e-mail: java-user-help@lucene.apache.org >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org