Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 73402 invoked from network); 23 Mar 2005 22:21:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Mar 2005 22:21:48 -0000 Received: (qmail 60247 invoked by uid 500); 23 Mar 2005 22:21:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 60064 invoked by uid 500); 23 Mar 2005 22:21:27 -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 59973 invoked by uid 500); 23 Mar 2005 22:21:27 -0000 Delivered-To: apmail-jakarta-lucene-user@jakarta.apache.org Received: (qmail 59938 invoked by uid 99); 23 Mar 2005 22:21:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO disidente.novamens.com) (200.73.189.61) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 23 Mar 2005 14:21:26 -0800 Received: from 127.0.0.1 (disidente [127.0.0.1]) by disidente.novamens.com (Postfix) with SMTP id 9CE385B63E for ; Wed, 23 Mar 2005 19:21:21 -0300 (ART) Received: from disidente.novamens.com ([127.0.0.1]) by localhost (disidente [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13502-06 for ; Wed, 23 Mar 2005 19:21:16 -0300 (ART) Received: from mens.hq.novamens.com (unknown [200.73.189.82]) by disidente.novamens.com (Postfix) with ESMTP id CAC3F5B633 for ; Wed, 23 Mar 2005 19:21:16 -0300 (ART) Received: from [127.0.0.1] (unknown [192.168.1.11]) by mens.hq.novamens.com (Postfix) with ESMTP id 0B00B37E53 for ; Wed, 23 Mar 2005 19:21:16 -0300 (ART) Message-ID: <4241EBDC.9090104@novamens.com> Date: Wed, 23 Mar 2005 19:21:16 -0300 From: Alexis Rodriguez User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: lucene-user@jakarta.apache.org Subject: "docs out of order exception" in Lucene. Please help. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, we have an issue with Lucene and haven't found a solution so far. So, I'm asking for your help if that's possible. The scenario is as follows: We are using 2 lucene FS directories, a main one and a small temporary one where all our documents are added. After adding 100 documents, that small directory is merged into the main one and then a new index is created into the same temporary directory (using IndexWriter constructor with create = true). We also have a MultiReader on both directories (wraps 2 indexReaders) for doing search and removal of documents. This MultiReader is never closed explicitally. Instead the IndexReader on the main directory is closed only when doing a merge, and the indexReader on the temp directory is closed when doing an update (adding a document) with IndexWriter. Everything is synchronized so that they are closed only when MultiReader is not being used. This MultiReader is the only IndexReader we export in the interface and has a count number which is being incremented when an indexReader is requested and decremented when that indexreader is closed. Remember the MultiReader is not really closed. When one of the 2 underlying readers is closed, we assign a new MultiReader to the variable holding it. So, the problem is that randomly, but oftenly, when we are doing a close on the IndexWriter (after adding a document), we get an "docs out of order" exception. Problem seems to be with some SegmentMergeInfos in the Working FS directory and some SegmentMergeInfos in the internal RAMDirectory of the IndexWriter. Have any of you got that "docs out of order" exception and know what is causing it? Searching in Lucene mailing-list we saw little reference to that exception (marking it as a lucene bug, but no answer on how to deal with it). We have to get this problem solved by Monday, so ANY help will be appreciated. Thanks in advance. Alexis Rodriguez, from Novamens S.A. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org