Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 024E5F499 for ; Tue, 26 Mar 2013 10:16:52 +0000 (UTC) Received: (qmail 16097 invoked by uid 500); 26 Mar 2013 10:16:48 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 15870 invoked by uid 500); 26 Mar 2013 10:16:48 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 15840 invoked by uid 99); 26 Mar 2013 10:16:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 10:16:47 +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 mario.casola@gmail.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 10:16:42 +0000 Received: by mail-wi0-f169.google.com with SMTP id c10so535667wiw.2 for ; Tue, 26 Mar 2013 03:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=CEwIEEeNC2dGCWRWdHS+3l3u4d5RXmjazozv/2zm+DQ=; b=UazZY2vwgL89TKM71X15qVr4sNBDiop3um0TyB/QYRnFDhgndkiRCkzMQXH5GZT973 GlWynqQW8hVuJ+py/AzSnoSIMt/4xyCKUEYstXo1NUe6+9yLl1UWXB9zod6AO6i0+KsG ZUjsgGsl3Y5KSEz1OGbqVWpSent4Skr8GxlHZY07B7l7+ClCjlcmpmufYVWJencUJNkG XwWczmjXw8KVwjFwTsqiJ0XiEx5+rvMfHA/8kiUlN/3GZrMU7ueCubxDzOCvOIzOh52t 7Zsnh0xjwUFfPZLkzHaGtDrQLcpeMWYjcyGnZ9Xe7rAHiedav9sjt8bZaFV4sE+T9chp acqg== MIME-Version: 1.0 X-Received: by 10.180.90.18 with SMTP id bs18mr2025528wib.31.1364292982284; Tue, 26 Mar 2013 03:16:22 -0700 (PDT) Received: by 10.194.170.33 with HTTP; Tue, 26 Mar 2013 03:16:22 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Mar 2013 11:16:22 +0100 Message-ID: Subject: Re: lucene 42 codec From: Mario Casola To: solr-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org thank you very much. Mario 2013/3/25 Chris Hostetter : > > : I noticed that apache solr 4.2 uses the lucene codec 4.1. How can I > : switch to 4.2? > > Unless you've configured something oddly, Solr is already using the 4.2 > codec. > > What you are probably seeing is that the fileformat for several types of > files hasn't changed from the 4.1 (or even 4.0) versions, so they are > still used in 4.2 (and confusingly include "Lucene41" in the filenames in > several cases). > > Note that in the 4.2 codec package javadocs, several codec related classes > are not implemented, and the docs link back to the 4.1 and 4.0 > implementations... > > https://lucene.apache.org/core/4_2_0/core/org/apache/lucene/codecs/lucene42/package-summary.html > > If you peek inside the Lucene42Codec class you'll also see... > > private final StoredFieldsFormat fieldsFormat = new Lucene41StoredFieldsFormat(); > private final TermVectorsFormat vectorsFormat = new Lucene42TermVectorsFormat(); > private final FieldInfosFormat fieldInfosFormat = new Lucene42FieldInfosFormat(); > private final SegmentInfoFormat infosFormat = new Lucene40SegmentInfoFormat(); > private final LiveDocsFormat liveDocsFormat = new Lucene40LiveDocsFormat(); > > -Hoss