use of org.neo4j.kernel.impl.index.IndexConfigStore in project neo4j by neo4j.
the class TestMigration method removeProvidersFromIndexDbFile.
private void removeProvidersFromIndexDbFile(File storeDir) {
IndexConfigStore indexStore = new IndexConfigStore(storeDir, fileSystemRule.get());
for (Class<? extends PropertyContainer> cls : new Class[] { Node.class, Relationship.class }) {
for (String name : indexStore.getNames(cls)) {
Map<String, String> config = indexStore.get(cls, name);
config = new HashMap<>(config);
config.remove(IndexManager.PROVIDER);
indexStore.set(Node.class, name, config);
}
}
}
use of org.neo4j.kernel.impl.index.IndexConfigStore in project neo4j by neo4j.
the class WritableIndexReferenceFactoryTest method setupIndexInfrastructure.
private void setupIndexInfrastructure() throws IOException {
File storeDir = getStoreDir();
indexStore = new IndexConfigStore(storeDir, fileSystemRule.get());
indexStore.set(Node.class, INDEX_NAME, MapUtil.stringMap(IndexManager.PROVIDER, "lucene", "type", "fulltext"));
}
Aggregations