Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 17777 invoked from network); 20 Jan 2011 23:23:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2011 23:23:14 -0000 Received: (qmail 57769 invoked by uid 500); 20 Jan 2011 23:23:12 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 57624 invoked by uid 500); 20 Jan 2011 23:23:11 -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 57613 invoked by uid 99); 20 Jan 2011 23:23:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 23:23:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jack.krupansky@lucidimagination.com designates 38.102.63.183 as permitted sender) Received: from [38.102.63.183] (HELO smtp-4.01.com) (38.102.63.183) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 23:23:02 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-4.01.com (Postfix) with ESMTP id 9538559DA2 for ; Thu, 20 Jan 2011 17:22:41 -0600 (CST) Received: from smtp-4.01.com ([127.0.0.1]) by localhost (smtp-4.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ocIYiqdd+Lf1 for ; Thu, 20 Jan 2011 17:22:41 -0600 (CST) Received: by smtp-4.01.com (Postfix, from userid 99) id 7C11C59DA1; Thu, 20 Jan 2011 17:22:41 -0600 (CST) Received: from JackKrupansky (207-237-117-231.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com [207.237.117.231]) by smtp-4.01.com (Postfix) with ESMTPSA id 46AEA59DA2 for ; Thu, 20 Jan 2011 17:22:41 -0600 (CST) Message-ID: From: "Jack Krupansky" To: References: In-Reply-To: Subject: Re: Wildcard Case Sensitivity Date: Thu, 20 Jan 2011 18:22:35 -0500 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.3502.922 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3502.922 X-Virus-Checked: Checked by ClamAV on apache.org Wildcards only work for a single term. At index time the underscore in TEST_TYPE is treated as if it were a space separator, producing two terms. At query time the existence of the wildcard suppresses ALL analysis of the term (although that behavior may vary between query parsers), so that the underscore is kept at query time even though StandardAnalyzer (or WordDelimiterFilter or similar filter) would produce a text stream without any underscores. StandardAnalyzer lower cases its output, so there is no case sensitivity. But, if you happen to use upper case in a wildcard query term that query term will fail to match anything because the existence of the wildcard suppresses all analysis, including the lowercasing. Once again, different query parsers may behave differently. -- Jack Krupansky -----Original Message----- From: Amin Mohammed-Coleman Sent: Thursday, January 20, 2011 4:37 PM To: java-user@lucene.apache.org Subject: Wildcard Case Sensitivity Hi Apologies up front if this question has been asked before. I have a document which contains a field that stores an untokenized value such as TEST_TYPE. The analyser used is StandardAnalyzer and I pass the same analyzer into the query. I perform the following query : fieldName:TEST_*, however this does not return any results. Is this the expected behaviour? Can I use capital letters in my wildcard query or do i need to do some processing before passing it to the query parser? Any help would be appreciated. Thanks Amin --------------------------------------------------------------------- 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