Example #1
0
		 private void RemoveProvidersFromIndexDbFile( DatabaseLayout databaseLayout )
		 {
			  IndexConfigStore indexStore = new IndexConfigStore( databaseLayout, FileSystemRule.get() );
			  foreach ( Type cls in new Type[] { typeof( Node ), typeof( Relationship ) } )
			  {
					foreach ( string name in indexStore.GetNames( cls ) )
					{
						 IDictionary<string, string> config = indexStore.Get( cls, name );
						 config = new Dictionary<string, string>( config );
						 config.Remove( Org.Neo4j.Graphdb.index.IndexManager_Fields.PROVIDER );
						 indexStore.Set( typeof( Node ), name, config );
					}
			  }
		 }