How to use lucene-backward-codecs?
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
add a comment |
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
add a comment |
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
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
solr lucene
asked Nov 20 '18 at 5:14
ishayleishayle
32129
32129
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 20 '18 at 9:39
MatsLindhMatsLindh
24.9k22241
24.9k22241
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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