Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 37588 invoked from network); 19 Jun 2006 12:14:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jun 2006 12:14:02 -0000 Received: (qmail 57504 invoked by uid 500); 19 Jun 2006 12:13:55 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 57460 invoked by uid 500); 19 Jun 2006 12:13:55 -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 57449 invoked by uid 99); 19 Jun 2006 12:13:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 05:13:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 05:13:54 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 66585410009 for ; Mon, 19 Jun 2006 12:12:33 +0000 (GMT) Message-ID: <526935.1150719153416.JavaMail.jira@brutus> Date: Mon, 19 Jun 2006 12:12:33 +0000 (GMT+00:00) From: "Christian Kohlschuetter (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-606) Change behavior of ParallelReader.document(int) In-Reply-To: <11477667.1150719030888.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-606?page=all ] Christian Kohlschuetter updated LUCENE-606: ------------------------------------------- Attachment: patch-allfields.diff Patch to ParallelReader. Implementation of the proposed parameter. > Change behavior of ParallelReader.document(int) > ----------------------------------------------- > > Key: LUCENE-606 > URL: http://issues.apache.org/jira/browse/LUCENE-606 > Project: Lucene - Java > Type: Improvement > Components: Index > Versions: 2.0.0 > Reporter: Christian Kohlschuetter > Attachments: ParallelReaderTest2.java, patch-allfields.diff > > Currently, the returned documents contain, for each field, the stored data from all enclosed IndexReaders which contain the corresponding field. > That is, a call to ParallelReader.document(doc).getFields(fieldName) returns an array of possibly several Field objects. Since null entries are disallowed, there is no way to determine to which IndexReader the field data exactly belongs. > On the other side, a search for a term on that field only yields results if that term was contained in the *first* matching IndexReader which contained the field. > Thus, when merging the ParallelReader contents to another IndexWriter, the indexed data does not correspond to the stored information. > I am not sure whether this can be considered a bug (in some cases, this may exactly be required). However I would like to see an option to change this behaviour. > I suggest a parameter for ParallelReader which specifies whether stored data from all IndexReaders or only from the one which is repsonsible for the field's indexed data will be returned by ParallelReader.document(int). > Please find my proposed implementation attached, as well as a JUnit testcase. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org