How to use lucene-backward-codecs?












0















I'm trying to make Solr 7.3.1 read a 5.3.1 index, I'm trying to use lucene-backward-codecs jar file, but i cant make it work -




Caused by: org.apache.lucene.index.IndexFormatTooOldException: Format
version is not supported (resource
BufferedChecksumIndexInput(MMapIndexInput(path="C:ProgramFilesVaronisDatAnswerssolrcloudnode1documents_shard1_replica_n1dataindexsegments_a"))):
this index is too old (version: 5.3.1). This version of Lucene only
supports indexes created with release 6.0 and later




Which version of lucene-backward-codecs do i need? Where in Solr do i need to put them in order to make it work?










share|improve this question



























    0















    I'm trying to make Solr 7.3.1 read a 5.3.1 index, I'm trying to use lucene-backward-codecs jar file, but i cant make it work -




    Caused by: org.apache.lucene.index.IndexFormatTooOldException: Format
    version is not supported (resource
    BufferedChecksumIndexInput(MMapIndexInput(path="C:ProgramFilesVaronisDatAnswerssolrcloudnode1documents_shard1_replica_n1dataindexsegments_a"))):
    this index is too old (version: 5.3.1). This version of Lucene only
    supports indexes created with release 6.0 and later




    Which version of lucene-backward-codecs do i need? Where in Solr do i need to put them in order to make it work?










    share|improve this question

























      0












      0








      0








      I'm trying to make Solr 7.3.1 read a 5.3.1 index, I'm trying to use lucene-backward-codecs jar file, but i cant make it work -




      Caused by: org.apache.lucene.index.IndexFormatTooOldException: Format
      version is not supported (resource
      BufferedChecksumIndexInput(MMapIndexInput(path="C:ProgramFilesVaronisDatAnswerssolrcloudnode1documents_shard1_replica_n1dataindexsegments_a"))):
      this index is too old (version: 5.3.1). This version of Lucene only
      supports indexes created with release 6.0 and later




      Which version of lucene-backward-codecs do i need? Where in Solr do i need to put them in order to make it work?










      share|improve this question














      I'm trying to make Solr 7.3.1 read a 5.3.1 index, I'm trying to use lucene-backward-codecs jar file, but i cant make it work -




      Caused by: org.apache.lucene.index.IndexFormatTooOldException: Format
      version is not supported (resource
      BufferedChecksumIndexInput(MMapIndexInput(path="C:ProgramFilesVaronisDatAnswerssolrcloudnode1documents_shard1_replica_n1dataindexsegments_a"))):
      this index is too old (version: 5.3.1). This version of Lucene only
      supports indexes created with release 6.0 and later




      Which version of lucene-backward-codecs do i need? Where in Solr do i need to put them in order to make it work?







      solr lucene






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 '18 at 5:14









      ishayleishayle

      32129




      32129
























          1 Answer
          1






          active

          oldest

          votes


















          1














          The backwards codec files are used with the IndexUpgrader tool. It's also used internally in Solr to read the old index files automagically and is already loaded.




          The Lucene distribution includes a tool that upgrades an index from previous Lucene versions to the current file format.




          java -cp lucene-core-7.5.0.jar:lucene-backward-codecs-7.5.0.jar org.apache.lucene.index.IndexUpgrader [-delete-prior-commits] [-verbose] /path/to/index


          But this is the issue you're probably running into - the backwards compatibility only spans one major release. So Solr 7 can read index files from Solr 6, but not from Solr 5.



          To fix this you can download Solr 6.x, run the IndexUpgrader tool, then open that index in Solr 7.5.



          There's also a tool that downloads the required jars (upgradeindex.sh) and performs an automagic upgrade from each version for you.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53386627%2fhow-to-use-lucene-backward-codecs%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            The backwards codec files are used with the IndexUpgrader tool. It's also used internally in Solr to read the old index files automagically and is already loaded.




            The Lucene distribution includes a tool that upgrades an index from previous Lucene versions to the current file format.




            java -cp lucene-core-7.5.0.jar:lucene-backward-codecs-7.5.0.jar org.apache.lucene.index.IndexUpgrader [-delete-prior-commits] [-verbose] /path/to/index


            But this is the issue you're probably running into - the backwards compatibility only spans one major release. So Solr 7 can read index files from Solr 6, but not from Solr 5.



            To fix this you can download Solr 6.x, run the IndexUpgrader tool, then open that index in Solr 7.5.



            There's also a tool that downloads the required jars (upgradeindex.sh) and performs an automagic upgrade from each version for you.






            share|improve this answer




























              1














              The backwards codec files are used with the IndexUpgrader tool. It's also used internally in Solr to read the old index files automagically and is already loaded.




              The Lucene distribution includes a tool that upgrades an index from previous Lucene versions to the current file format.




              java -cp lucene-core-7.5.0.jar:lucene-backward-codecs-7.5.0.jar org.apache.lucene.index.IndexUpgrader [-delete-prior-commits] [-verbose] /path/to/index


              But this is the issue you're probably running into - the backwards compatibility only spans one major release. So Solr 7 can read index files from Solr 6, but not from Solr 5.



              To fix this you can download Solr 6.x, run the IndexUpgrader tool, then open that index in Solr 7.5.



              There's also a tool that downloads the required jars (upgradeindex.sh) and performs an automagic upgrade from each version for you.






              share|improve this answer


























                1












                1








                1







                The backwards codec files are used with the IndexUpgrader tool. It's also used internally in Solr to read the old index files automagically and is already loaded.




                The Lucene distribution includes a tool that upgrades an index from previous Lucene versions to the current file format.




                java -cp lucene-core-7.5.0.jar:lucene-backward-codecs-7.5.0.jar org.apache.lucene.index.IndexUpgrader [-delete-prior-commits] [-verbose] /path/to/index


                But this is the issue you're probably running into - the backwards compatibility only spans one major release. So Solr 7 can read index files from Solr 6, but not from Solr 5.



                To fix this you can download Solr 6.x, run the IndexUpgrader tool, then open that index in Solr 7.5.



                There's also a tool that downloads the required jars (upgradeindex.sh) and performs an automagic upgrade from each version for you.






                share|improve this answer













                The backwards codec files are used with the IndexUpgrader tool. It's also used internally in Solr to read the old index files automagically and is already loaded.




                The Lucene distribution includes a tool that upgrades an index from previous Lucene versions to the current file format.




                java -cp lucene-core-7.5.0.jar:lucene-backward-codecs-7.5.0.jar org.apache.lucene.index.IndexUpgrader [-delete-prior-commits] [-verbose] /path/to/index


                But this is the issue you're probably running into - the backwards compatibility only spans one major release. So Solr 7 can read index files from Solr 6, but not from Solr 5.



                To fix this you can download Solr 6.x, run the IndexUpgrader tool, then open that index in Solr 7.5.



                There's also a tool that downloads the required jars (upgradeindex.sh) and performs an automagic upgrade from each version for you.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 20 '18 at 9:39









                MatsLindhMatsLindh

                24.9k22241




                24.9k22241






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53386627%2fhow-to-use-lucene-backward-codecs%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

                    Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

                    A Topological Invariant for $pi_3(U(n))$