public class IndexMigration extends Object
IndexMigrationimplements 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 and Description|
|Modifier and Type||Method and Description|
Checks if the given
public static void migrate(org.apache.jackrabbit.core.query.lucene.PersistentIndex index, DirectoryManager directoryManager, char oldSeparatorChar) throws IOException
indexneeds to be migrated.
index- the index to check and migration if needed.
directoryManager- the directory manager.
oldSeparatorChar- the old separator char that needs to be replaced.
IOException- if an error occurs while migrating the index.
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.