Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D5C211534 for ; Mon, 9 Jun 2014 12:54:31 +0000 (UTC) Received: (qmail 3522 invoked by uid 500); 9 Jun 2014 12:54:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 3458 invoked by uid 500); 9 Jun 2014 12:54:29 -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 3447 invoked by uid 99); 9 Jun 2014 12:54:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 12:54:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of trejkaz@trypticon.org designates 209.85.220.177 as permitted sender) Received: from [209.85.220.177] (HELO mail-vc0-f177.google.com) (209.85.220.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 12:54:25 +0000 Received: by mail-vc0-f177.google.com with SMTP id ij19so691388vcb.22 for ; Mon, 09 Jun 2014 05:54:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=zHlQuhQVGOO2M8yzu0RTgop0PwcPRiWToYtCgiu4e1o=; b=Lr349vO+/vG8nrnLHbRG+5VCTxULTVQ+cXU2XSKliFOdL5oclRP59/ToPvwSZB+zSM oxEhyT4bkTVdbili0oJBg5gQX9JLKcRNAVJjCwA8+DAcDsUKtyHqU/ELfF+zHFa/XXxy t6auehwwt7dTrnuEqdnFN9RLg0MKNyyDXYH165zPps6HEjueeoogBudFKho2NbgN0ATB 22mmUNHB8sA1yw83N4zJ7KmQBSuhREBXG6DTa6pB9SntijI6m9bYLN+5Et0Qhbccmg+J wQZ7rtLhDo2W+GOs0qB481XlQQUI3gn0MFkNlCmzpWq4GW74BqNBc3stpigydXELJfxv McvQ== X-Gm-Message-State: ALoCoQmRA++2ixCo4XEbcyJIyBK6fD5/mP4wjPBABzTpJXOPgbJY3zR2GheLgVUGFSKVI5P9DVfK X-Received: by 10.221.58.144 with SMTP id wk16mr25633843vcb.23.1402318440755; Mon, 09 Jun 2014 05:54:00 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPSA id p1sm35327280vdp.17.2014.06.09.05.53.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Jun 2014 05:53:59 -0700 (PDT) Received: by mail-vc0-f172.google.com with SMTP id hy10so710542vcb.3 for ; Mon, 09 Jun 2014 05:53:59 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.52.246.42 with SMTP id xt10mr21557851vdc.5.1402318439814; Mon, 09 Jun 2014 05:53:59 -0700 (PDT) Received: by 10.220.107.139 with HTTP; Mon, 9 Jun 2014 05:53:59 -0700 (PDT) In-Reply-To: References: Date: Mon, 9 Jun 2014 22:53:59 +1000 Message-ID: Subject: Re: Reading a v2 index in v4 From: Trejkaz To: Lucene Users Mailing List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Jun 9, 2014 at 10:17 PM, Adrien Grand wrote: > Hi, > > It is not possible to read 2.x indices from Lucene 4, even with a > custom codec. For instance, Lucene 4 needs to hook into > SegmentInfos.read to detect old 3.x indices and force the use of the > Lucene3x codec since these indices don't expose what codec has been > used to write them. Rats. I was wondering how the Lucene3x codec worked, but now I know. I was hoping codecs were going to be more flexible than that, but it looks like nobody considered the possibility that I might want to pass a Codec into my IndexReader. :( TX --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org