From java-dev-return-13269-apmail-lucene-java-dev-archive=lucene.apache.org@lucene.apache.org Tue Apr 04 05:08:54 2006 Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 54598 invoked from network); 4 Apr 2006 05:08:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 05:08:54 -0000 Received: (qmail 84750 invoked by uid 500); 4 Apr 2006 05:08:53 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 84171 invoked by uid 500); 4 Apr 2006 05:08:51 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 84157 invoked by uid 99); 4 Apr 2006 05:08:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 22:08:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of nirma.prasad@gmail.com designates 64.233.184.229 as permitted sender) Received: from [64.233.184.229] (HELO wproxy.gmail.com) (64.233.184.229) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 22:08:49 -0700 Received: by wproxy.gmail.com with SMTP id i14so1566328wra for ; Mon, 03 Apr 2006 22:08:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=J28/tA1LWY5z4/d3pjiOPGSw/4XtJez95ihzkB1jngGzLx/T0IQuD2Dg7m3g9rJdHa+jIf/SMiqXzejLPaNfqSHchNM1UkhfvU1uUpU1UAYxlLw+d2OcN5p0a8KmZ7LjK2CXfKY9yeY0Ei1FF8jUhGHudlDWJzZorxmF/jhGWBg= Received: by 10.65.151.3 with SMTP id d3mr96781qbo; Mon, 03 Apr 2006 22:08:28 -0700 (PDT) Received: by 10.65.139.15 with HTTP; Mon, 3 Apr 2006 22:08:28 -0700 (PDT) Message-ID: Date: Tue, 4 Apr 2006 10:38:28 +0530 From: "nirma prasad" To: java-dev@lucene.apache.org Subject: Different hit counts for same qyery string with same index files MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_50918_12584722.1144127308854" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_50918_12584722.1144127308854 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi All, I am using Lucene for indexing and searching. I am getting different hit counts for same query string. For example first time it gives 10 hits then second time it gives 20 hits with same index files. If any one has any idea then please let me know. I am adding the code: IndexSearcher is =3D new IndexSearcher(IndexFolder); Analyzer analyzer =3D new StandardAnalyzer(); Query query =3D QueryParser.parse(queryString , "text", analyzer); Hits hits =3D is.search(query); Thanks in advance Nirma ------=_Part_50918_12584722.1144127308854--