Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 12178 invoked from network); 26 Oct 2006 10:57:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 10:57:38 -0000 Received: (qmail 26315 invoked by uid 500); 26 Oct 2006 10:57:43 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 26278 invoked by uid 500); 26 Oct 2006 10:57:42 -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 26267 invoked by uid 99); 26 Oct 2006 10:57:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 03:57:42 -0700 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of pksunilpk@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 03:57:29 -0700 Received: by ug-out-1314.google.com with SMTP id k40so340110ugc for ; Thu, 26 Oct 2006 03:57:07 -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=D5EhjDWbzmf04rNon3tT9qoHjXcmJKxhTb/whJNZSByTOjKk6CDnaPhfAHfkEWKTEawH4/e06J8r2owynAU3YIHQ0PMKCv+fYQPpcVQ7VAJAq5afjxY6ORpEgLmDIeOu6IqXpTZf1zmNwu+/A/TPXToRyMATY9fAb1YvMv3PDJw= Received: by 10.78.117.10 with SMTP id p10mr2594108huc; Thu, 26 Oct 2006 03:57:07 -0700 (PDT) Received: by 10.78.159.7 with HTTP; Thu, 26 Oct 2006 03:57:06 -0700 (PDT) Message-ID: Date: Thu, 26 Oct 2006 16:27:07 +0530 From: "Sunil Kumar PK" To: "java user" Subject: Searching Problem MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_28715_28453557.1161860227330" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_28715_28453557.1161860227330 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I have a program to create a lucene index, and another program for searching that index. The Search program create an IndexSearcher object once in its constructor, and I created a method doSearch to search the index. The doSearch method uses the indexSearcher object to get the Hits. My Indexer program is continuously adding documents to the index. My problem is that I am not getting the matching documents in my search results, which are added after creating the IndexSearcher object in my Search program. Is it possible to get all the matching document in the result without restarting the Searcher program? Thanks, Sunil ------=_Part_28715_28453557.1161860227330--