Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 84863 invoked from network); 17 Feb 2010 23:46:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2010 23:46:17 -0000 Received: (qmail 73253 invoked by uid 500); 17 Feb 2010 23:46:16 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 73171 invoked by uid 500); 17 Feb 2010 23:46:16 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 73161 invoked by uid 99); 17 Feb 2010 23:46:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2010 23:46:16 +0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.61.9.20] (HELO mail1.nl.clara.net) (212.61.9.20) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2010 23:46:07 +0000 Received: from claranet.nl (bifur.vianetworks.nl [212.61.15.16]) by mail1.nl.clara.net (Postfix) with SMTP id 5E49135A3D6 for ; Thu, 18 Feb 2010 00:45:45 +0100 (CET) Received: from 82.73.244.17 (SquirrelMail authenticated user buyway58) by webmail.claranet.nl with HTTP; Thu, 18 Feb 2010 00:45:45 +0100 (CET) Message-ID: <43379.82.73.244.17.1266450345.squirrel@webmail.claranet.nl> Date: Thu, 18 Feb 2010 00:45:45 +0100 (CET) Subject: Re: couchdb-lucene : stemming analyzer configuration question From: "Markus Jelsma" To: In-Reply-To: <810064.51608.qm@web45301.mail.sp1.yahoo.com> References: <904347.85420.qm@web45310.mail.sp1.yahoo.com> <782b14801002170725l3d3801f6uca132dcee2f7019c@mail.gmail.com> <810064.51608.qm@web45301.mail.sp1.yahoo.com> X-Priority: 3 Importance: Normal Reply-To: markus@buyways.nl X-Mailer: SquirrelMail (version 1.2.8) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, You cannot the wildcard as a prefix, check Lucene's query parser [1] for more information. Don't worry about the version mentioned, you use a 1.9.x version. [1]: http://lucene.apache.org/java/2_0_0/queryparsersyntax.html Cheers, go canal said: > thanks. I checked, but it can not support '*a' query --- * and ? can be > the first char. I can not figure out how to query 'find doc that contain > a' for example. > rgds, > canal > > > > > ________________________________ > From: Ladislav Thon > To: user@couchdb.apache.org > Sent: Wed, February 17, 2010 11:25:19 PM > Subject: Re: couchdb-lucene : stemming analyzer configuration question > >> I am able to query a word, but not able to match partial word. For >> example, I have a 'name' field with a value 'alex'. I can query the >> documents if I use 'q=alex'. But I am not able to get any documents if >> I use 'q=a'. >> > > Lucene supports wildcard queries, so you might want to use 'q=a*'. Don't > know anything about couchdb-lucene, though. > > LT > > > >