Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 33406 invoked from network); 1 Aug 2007 06:51:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2007 06:51:55 -0000 Received: (qmail 931 invoked by uid 500); 1 Aug 2007 06:51:49 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 887 invoked by uid 500); 1 Aug 2007 06:51:49 -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 875 invoked by uid 99); 1 Aug 2007 06:51:49 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2007 23:51:49 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [80.67.64.10] (HELO smtp1.akamai.com) (80.67.64.10) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 06:51:41 +0000 Received: from smtp1.akamai.com (vwall.kendall.corp.akamai.com [172.17.4.35]) by smtp1.akamai.com (8.13.8/8.12.10) with ESMTP id l716oHW0013127 for ; Wed, 1 Aug 2007 02:50:17 -0400 (EDT) Received: from USMA1EX-GATE1.kendall.corp.akamai.com (usma1ex-gate1.kendall.corp.akamai.com [172.17.0.215]) by smtp1.akamai.com (8.13.8/8.12.10) with ESMTP id l716oGKn013121 for ; Wed, 1 Aug 2007 02:50:16 -0400 (EDT) Received: from INVS1.bangalore.corp.akamai.com ([172.21.20.14]) by USMA1EX-GATE1.kendall.corp.akamai.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 1 Aug 2007 02:46:04 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: RE: Problem Search using lucene Date: Wed, 1 Aug 2007 12:18:12 +0530 Message-ID: <4FA8C6AEE609B644B38DE471A3657A620141D4F6@INVS1.bangalore.corp.akamai.com> In-Reply-To: <11940536.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem Search using lucene Thread-Index: AcfUB1sxkvP0fForSVKQiojcqipp3QAAEs4w References: <11939477.post@talk.nabble.com> <7a14509e0707312133y79b69e8cq7a07c4ef60e51917@mail.gmail.com> <11940536.post@talk.nabble.com> From: "Chhabra, Kapil" To: X-OriginalArrivalTime: 01 Aug 2007 06:46:04.0062 (UTC) FILETIME=[A15FD3E0:01C7D407] X-Virus-Checked: Checked by ClamAV on apache.org You just have to make sure that what you are searching is indexed (and esp. in the same format/case). Use Luke (http://www.getopt.org/luke/) to browse through your index. This might give you an insight of what you have indexed and what you are searching for. Regards, kapilChhabra -----Original Message----- From: masz-wow [mailto:maznorlia.syafina@gmail.com]=20 Sent: Wednesday, August 01, 2007 12:13 PM To: java-user@lucene.apache.org Subject: Re: Problem Search using lucene Thanks Joe I'm using this function as my analyzer public static Analyzer getDefaultAnalyzer() { PerFieldAnalyzerWrapper perFieldAnalyzer =3D new PerFieldAnalyzerWrapper(new StopAnalyzer()); perFieldAnalyzer.addAnalyzer("contents", new StopAnalyzer()); perFieldAnalyzer.addAnalyzer("fileID", new WhitespaceAnalyzer()); perFieldAnalyzer.addAnalyzer("path", new KeywordAnalyzer()); return perFieldAnalyzer; } StopAnalyzer builds an analyzer which removes words in ENGLISH_STOP_WORDS.That might be the cause why I cannot search words such as 'and' 'to' BUT I'm still having problem when I search a few words other than english words such as name (eg: Ghazat) or string of numbers (eg:45600). --=20 View this message in context: http://www.nabble.com/Problem-Search-using-lucene-tf4197963.html#a119405 36 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