Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 10265 invoked from network); 2 Feb 2010 12:22:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2010 12:22:13 -0000 Received: (qmail 53196 invoked by uid 500); 2 Feb 2010 12:22:11 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 53128 invoked by uid 500); 2 Feb 2010 12:22:11 -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 53117 invoked by uid 99); 2 Feb 2010 12:22:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 12:22:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of volkanagun@gmail.com designates 209.85.220.224 as permitted sender) Received: from [209.85.220.224] (HELO mail-fx0-f224.google.com) (209.85.220.224) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 12:22:01 +0000 Received: by fxm24 with SMTP id 24so1706013fxm.11 for ; Tue, 02 Feb 2010 04:21:40 -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 :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ORaNWoDfqw4BRadEagoa+zehFWNh7W3+W8E/30t4rl8=; b=AnHFojTrqq1j/LMNhTYIpm8MXK/d1NXWoowHjg/zTpdtLsiXfvrOC4tvbx0U5Ersdx l9rl0Ay0LAxm7hZhnMuyxIs97MGzmS+y9M9cUVNgWXtM09U/guVEtfimxqnUsWyjt9pa jvP+D/oBZxXCGfHiRhtavQ/WexfY5LZgD48ck= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=n3IoCs/JMxYOY/0j5sf22O5ITq3whYxuxUixXAtbDh7gRcsGJNIS6anYypi7p187Be 1DejgeiP5yv+9oAymB8G+eZ+YUcAGWDVvaJ5cZpad75o1zNpOTgxD5QuQx/SK7NPAJDA eVGGxn7URxKrxjgn9suW2RzpPAR+HWMqwqnZE= Received: by 10.223.14.206 with SMTP id h14mr700283faa.92.1265113297946; Tue, 02 Feb 2010 04:21:37 -0800 (PST) Received: from ?192.168.2.2? ([88.236.68.130]) by mx.google.com with ESMTPS id 15sm2457562fxm.6.2010.02.02.04.21.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Feb 2010 04:21:37 -0800 (PST) Message-ID: <4B6818CF.20008@gmail.com> Date: Tue, 02 Feb 2010 13:21:35 +0100 From: Hayri User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: How to use search index while indexing References: <4B66D463.5080607@gmail.com> <8c4e68611002010632x615fb993pab21fd24d1b8c460@mail.gmail.com> In-Reply-To: <8c4e68611002010632x615fb993pab21fd24d1b8c460@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Ian Lea wrote: > Sounds like a job for near realtime search aka NRT. > > Take a look at IndexWriter.getReader(). > > http://wiki.apache.org/lucene-java/NearRealtimeSearch > http://www.lucidimagination.com/blog/2009/04/10/real-time-search-with-lucene/ > > And more with the help of your favourite search engine. > > > -- > Ian. > > On Mon, Feb 1, 2010 at 1:17 PM, Hayri wrote: > >> Hi, >> >> I want to search an index and at the same time continue to my indexing. >> ParallelReader doesn't solve my problem. >> It is obvious that I am not searching multiple indexes at the same time. How >> can I build a document based lock, more over >> I don't want to open and close and index every time while writing. Merging >> new index with the old one seems really time >> consuming and also I want to search the new index. >> >> Is it possible? Please give hints... >> >> --------------------------------------------------------------------- >> 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 > > > Hi Thanks, I have another related question. I want to decide whether I can index the document, so basically when a new document comes I need to make a search in a specific field in index. The problem is I don't need to create a IndexSearcher to search for every document to find if it indexed or not. I can gather and index the documents to RAM for example. But after certain # of documents ?? I have to decide to merge the index except the documents that are already in file index (for specific fields like unique). --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org