From java-user-return-13853-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Fri Apr 01 01:09:04 2005 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 69064 invoked from network); 1 Apr 2005 01:09:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Apr 2005 01:09:04 -0000 Received: (qmail 88441 invoked by uid 500); 1 Apr 2005 01:09:01 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 88413 invoked by uid 500); 1 Apr 2005 01:09:00 -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 88398 invoked by uid 99); 1 Apr 2005 01:09:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 31 Mar 2005 17:08:59 -0800 Received: by ehatchersolutions.com (Postfix, from userid 504) id 410B013E2122; Thu, 31 Mar 2005 20:08:53 -0500 (EST) Received: from [192.168.1.102] (va-chrvlle-cad1-bdgrp1-4b-b-169.chvlva.adelphia.net [68.169.41.169]) by ehatchersolutions.com (Postfix) with ESMTP id 0582413E2120 for ; Thu, 31 Mar 2005 20:08:38 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <424C32BC.80304@colaborativa.net> References: <424C0E62.10002@colaborativa.net> <297f128e646a94719e98205e5e42c4bc@ehatchersolutions.com> <424C32BC.80304@colaborativa.net> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <8e69c06b3362e84b43417b653c0c9913@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Analyzer don't work with wildcard queries, snowball analyzer. Date: Thu, 31 Mar 2005 20:08:37 -0500 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.619.2) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00, RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL autolearn=no version=3.0.1 X-Spam-Level: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Mar 31, 2005, at 12:26 PM, Ernesto De Santis wrote: > Hi Erik Finally, my name spelled correctly..... :)) > Ok, in PrefixQuery cases, non analyze is right. > > But you think that non analyze in WildcardQuery is right? Do I think its right? That's just the way it is. Whether that is right or not I don't know for sure. I don't think analyzing a wildcard expression is going to do the right thing in most cases - consider analyzers that split on special characters like ? and * - in fact I'd bet your analyzer currently does that! > You search "example" and obtain x results. > You search "ex?mple" and don't obtain any result. > This is correct for you? > It is difficult to analyze wildcard queries in lucene code? Your free to subclass QueryParser and override getWildcardQuery and analyze the term text. I suspect you won't have much success though. Please let us know what you find. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org