From java-user-return-31671-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Thu Dec 27 10:48:13 2007 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 3057 invoked from network); 27 Dec 2007 10:48:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Dec 2007 10:48:13 -0000 Received: (qmail 27197 invoked by uid 500); 27 Dec 2007 10:47:56 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 26935 invoked by uid 500); 27 Dec 2007 10:47:56 -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 26924 invoked by uid 99); 27 Dec 2007 10:47:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2007 02:47:55 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cdoronc@gmail.com designates 72.14.220.152 as permitted sender) Received: from [72.14.220.152] (HELO fg-out-1718.google.com) (72.14.220.152) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2007 10:47:34 +0000 Received: by fg-out-1718.google.com with SMTP id d23so1730084fga.27 for ; Thu, 27 Dec 2007 02:47:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=Q2wBrQNHXISX1Xt9r8StfbxGZVqRnCQvZ84j42Vpkyg=; b=xOwmeD+ppOKKNwE1jGFQijjK4yjJNhBHhaE/11rOklyTOGTiVVen3QymLOJC9K0O7cqgSwDV+bOKmYIfSsvEyCY1iACXiXixfAv2EX7yDKTEtcWka6CqAoB6s5cRneKSk67gbvAatV8XiBKZUpzSN1kDFT88eshQSvtT6aZHDh4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Y9IqQaeViaFBud/31uMtWBUaeOMn798ny71nPl+djHhkbKrhEeR2jLpkVrmSjgx3295+EPDWobvd6fnK/kl9J7m9Lu1gxGeyrxVYAcctssPqa8+423mmq7lxfTIR/kEhcZb6sXQ02LIXrn1v8l6uTQ+aVQwrNjfEdPkhUlXMZo0= Received: by 10.86.91.12 with SMTP id o12mr7669642fgb.55.1198752457694; Thu, 27 Dec 2007 02:47:37 -0800 (PST) Received: by 10.86.50.1 with HTTP; Thu, 27 Dec 2007 02:47:37 -0800 (PST) Message-ID: Date: Thu, 27 Dec 2007 12:47:37 +0200 From: "Doron Cohen" To: java-user@lucene.apache.org Subject: Re: StopWords problem In-Reply-To: <47737DF1.9080707@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11164_32455284.1198752457686" References: <4772AD46.9050709@gmail.com> <4772D485.6090605@gmail.com> <1B43DF61-1797-426A-AC14-B975888254DB@apache.org> <477355E7.6080601@gmail.com> <477360C4.7070004@gmail.com> <47737540.6010609@gmail.com> <47737DF1.9080707@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11164_32455284.1198752457686 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Try printing all these after you close the writer: - ((FSDirectory) dir).getFile().getAbsolutePath() - dir.list().length (n) - dir.list()[0], .. , dir.list[n] This should at least help you verify that an index was created and where. Regards, Doron On Dec 27, 2007 12:26 PM, Liaqat Ali wrote: > Doron Cohen wrote: > > On Dec 27, 2007 11:49 AM, Liaqat Ali wrote: > > > > > >> I got your point. The program given does not give not any error during > >> compilation and it is interpreted well. But the it does not create any > >> index. when the StandardAnalyzer() is called without Stopwords list it > >> works well, but when the list of stop words is passed as an argument, > >> then it does not. > >> > > > > > > Hi Liaqat, I am confused, are you saying that the program creates no > > index when stopwords are used? > > > > All this time I thought the problem you get is that stopwords are > indexed > > as if they were regular words, but now you say no index is created.. > > > > Is there any exception thrown? > > Do you see that there is no index to be found on the file system? > > Or do you mean after closing the IndexWriter and opening an > > IndexReader or IndexSearcher its numDocs is 0? > > Or perhaps the index contains documents but your query search > > finds nothing? > > > > Again, a stand-alone Java program that demonstrates the problem > > would be best and save your time and others. Lucene's Junit > > tests are good examples of short programs that demonstrate > > a problem, and fails unless the problem is fixed. > > > > Regards, Doron > > > > > Thanks alot Doron, I was confused too, the index i thought was created > by previous program. But this time when I run this program (with > stopwords as a argument), then it does not create index in the given > directory, there is nothing inside the specified directory. > There is no error during compilation or during interpretation. And I am > using LUKE for retrieval. So kindly suggest some guidelines. > > Regards, > Liaqat > ------=_Part_11164_32455284.1198752457686--