apache / lucene

Apache Lucene open-source search software
https://lucene.apache.org/
Apache License 2.0
2.68k stars 1.03k forks source link

index upgrade tool for /dev-tools [LUCENE-2893] #3967

Open asfimport opened 13 years ago

asfimport commented 13 years ago

we change the index format from time to time, and people tracking trunk have to re-index.

I think we should put a (unsupported, scary) tool in /dev-tools that uses the PreflexRW Codec to serialize the index to a 3.0 index (with your old trunk version), you can then deserialize it back with the newer trunk version, to the newest StandardCodec.

this won't prevent all reindexes, but would work for changes under codec control.

mainly though, I think we could somehow add undeleteAll + this tool + apply deletes to prevent the painful reindexing of luceneutil benchmarking indexes :)


Migrated from LUCENE-2893 by Robert Muir (@rmuir), updated Nov 20 2020 Attachments: LUCENE-2893.patch Linked issues:

asfimport commented 13 years ago

Robert Muir (@rmuir) (migrated from JIRA)

here is a patch against src/test, since it relies on test code to work.

i say we just drop the .java file in /dev-tools though, unless someone has ideas for improvements of course.

asfimport commented 3 years ago

Erick Erickson (@ErickErickson) (migrated from JIRA)

@rmuir Should we close this one too?