Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 27371 invoked from network); 28 Jan 2010 19:42:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2010 19:42:31 -0000 Received: (qmail 58802 invoked by uid 500); 28 Jan 2010 19:42:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 58716 invoked by uid 500); 28 Jan 2010 19:42:29 -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 58706 invoked by uid 99); 28 Jan 2010 19:42:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2010 19:42:29 +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 shashi.mit@gmail.com designates 209.85.219.210 as permitted sender) Received: from [209.85.219.210] (HELO mail-ew0-f210.google.com) (209.85.219.210) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2010 19:42:19 +0000 Received: by ewy2 with SMTP id 2so1193034ewy.5 for ; Thu, 28 Jan 2010 11:41:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type:content-transfer-encoding; bh=ABnqa0I9Bv4HTqzpUDZf+ode+Qk2R2tGyptrAv0AxGE=; b=N90SNsJBhFHTOnijDLOElhFFBk43sSa2HRB5ahKmwvlI2OUOCP722wuXWdA6j2dfdo iqqjBPBhRP9US1Vn6z98LSAJpL5SeF7HvbV4mzs3mHoOMVO3GY5yZxTStHzwppbpq0Q8 OETdNJF36M7mEV3DuR9V+TLwlfGj6YCsyIj6c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=RePU1WEup0bt8s6PBY83jQscLBSrrjhzaJHe3s+zHJvkdi+uiCAM1sUoMHt1vfAhC/ AnxI7e8w2jYnjcy0rehBVD+P07s17FQjLzRoKkRHLM30RR3QNtztr5G+V6TE+7evrR0c 20M3NEr3VZVZCKAPFbBVq5WpDnMlR5PqrIVOk= MIME-Version: 1.0 Sender: shashi.mit@gmail.com Received: by 10.216.91.84 with SMTP id g62mr2174199wef.216.1264707719251; Thu, 28 Jan 2010 11:41:59 -0800 (PST) In-Reply-To: <27358766.post@talk.nabble.com> References: <27358766.post@talk.nabble.com> From: Shashi Kant Date: Thu, 28 Jan 2010 14:41:38 -0500 X-Google-Sender-Auth: c2c26a5e7aeec876 Message-ID: <4d19a3631001281141w231b25e3q4134e3bf99d50fa@mail.gmail.com> Subject: Re: lucene search To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, if you want to search by substring (i.e. "lp" should return "lpg" as a result) you should look at wildcards. So a search for "lp*" (* is the wildcard character) would return lpg, lpghxyz, lp12345 and so on... On Thu, Jan 28, 2010 at 1:41 PM, andy green wrote= : > > hello, > > I programmed with Lucene code to handle the search on my site ... the > articles indexed are those stored in a database, then I do a search with > "lucene.queryparser" on the field "code" of various objects (a "code" is = a > word of 3 6-character) ... > > My problem is the fact that when I search, I am obliged to insert exactly > the real "code" to get a result. For example if in the database, I have a= n > object whose "code" is "lpg" , by typing "lp" in my textbox (for searchin= g), > I get nothing ... I must enter the real entire code =A0... "lpg" > > In addition my research does not react with "figures" or characters such = as > "_" > > How can I do? I think that the problem may be due to "analyzer" I chose? = (I > tried to use "SimpleAnalyser" or "StandardAnalyser) > > > Thank you for your help! > > -- > View this message in context: http://old.nabble.com/lucene-search-tp27358= 766p27358766.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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