//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void migrateEnableNativeSchemaIndex() public virtual void MigrateEnableNativeSchemaIndex() { IDictionary <string, string> migratedProperties = _migrator.apply(stringMap("unsupported.dbms.enable_native_schema_index", "false"), Log); assertEquals("Old property should be migrated to new", migratedProperties, stringMap("dbms.index.default_schema_provider", LUCENE10.providerName())); AssertContainsWarningMessage("unsupported.dbms.enable_native_schema_index has been replaced with dbms.index.default_schema_provider."); }
protected internal override IndexProvider CreateIndexProvider(PageCache pageCache, FileSystemAbstraction fs, File graphDbDir) { IndexProvider.Monitor monitor = IndexProvider.Monitor_Fields.EMPTY; Config config = Config.defaults(stringMap(default_schema_provider.name(), LUCENE10.providerName())); OperationalMode mode = OperationalMode.single; RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.immediate(); return(LuceneIndexProviderFactory.NewInstance(pageCache, graphDbDir, fs, monitor, config, mode, recoveryCleanupWorkCollector)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void oldLuceneSchemaIndexShouldBeConsideredConsistentWithFusionProvider() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void OldLuceneSchemaIndexShouldBeConsideredConsistentWithFusionProvider() { DatabaseLayout databaseLayout = _testDirectory.databaseLayout(); string defaultSchemaProvider = GraphDatabaseSettings.default_schema_provider.name(); Label label = Label.label("label"); string propKey = "propKey"; // Given a lucene index GraphDatabaseService db = GetGraphDatabaseService(databaseLayout.DatabaseDirectory(), defaultSchemaProvider, LUCENE10.providerName()); CreateIndex(db, label, propKey); using (Transaction tx = Db.beginTx()) { Db.createNode(label).setProperty(propKey, 1); Db.createNode(label).setProperty(propKey, "string"); tx.Success(); } Db.shutdown(); ConsistencyCheckService service = new ConsistencyCheckService(); Config configuration = Config.defaults(Settings(defaultSchemaProvider, NATIVE20.providerName())); Result result = RunFullConsistencyCheck(service, configuration, databaseLayout); assertTrue(result.Successful); }
public override ReadTestSupport NewTestSupport() { ReadTestSupport readTestSupport = new ReadTestSupport(); readTestSupport.AddSetting(GraphDatabaseSettings.default_schema_provider, LUCENE10.providerName()); return(readTestSupport); }