|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.IndexMigration
public class IndexMigration
IndexMigration implements a utility that migrates a Jackrabbit
1.4.x index to version 1.5. Until version 1.4.x, indexes used the character
'' to separate the name of a property from the value. As of Lucene
2.3 this does not work anymore. See LUCENE-1221. Jackrabbit >= 1.5 uses
the character '[' as a separator. Whenever an index is opened from disk, a
quick check is run to find out whether a migration is required. See also
JCR-1363 for more details.
| Constructor Summary | |
|---|---|
IndexMigration()
|
|
| Method Summary | |
|---|---|
static void |
migrate(org.apache.jackrabbit.core.query.lucene.PersistentIndex index,
java.io.File indexDir)
Checks if the given index needs to be migrated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexMigration()
| Method Detail |
|---|
public static void migrate(org.apache.jackrabbit.core.query.lucene.PersistentIndex index,
java.io.File indexDir)
throws java.io.IOException
index needs to be migrated.
index - the index to check and migration if needed.indexDir - the directory where the index is stored.
java.io.IOException - if an error occurs while migrating the index.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||