コード例 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void setupIndexInfrastructure() throws Exception
        private void SetupIndexInfrastructure()
        {
            DatabaseLayout databaseLayout = _testDirectory.databaseLayout();

            _indexStore = new IndexConfigStore(databaseLayout, _fileSystemRule.get());
            _indexStore.set(typeof(Node), INDEX_NAME, MapUtil.stringMap(Org.Neo4j.Graphdb.index.IndexManager_Fields.PROVIDER, "lucene", "type", "fulltext"));
            LuceneDataSource luceneDataSource = new LuceneDataSource(databaseLayout, Config.defaults(), _indexStore, _fileSystemRule.get(), OperationalMode.single);

            try
            {
                luceneDataSource.Init();
                luceneDataSource.GetIndexSearcher(_indexIdentifier);
            }
            finally
            {
                luceneDataSource.Shutdown();
            }
        }
コード例 #2
0
 private void SetupIndexInfrastructure()
 {
     _indexStore = new IndexConfigStore(_testDirectory.databaseLayout(), _fileSystemRule.get());
     _indexStore.set(typeof(Node), INDEX_NAME, MapUtil.stringMap(Org.Neo4j.Graphdb.index.IndexManager_Fields.PROVIDER, "lucene", "type", "fulltext"));
 }
コード例 #3
0
 protected internal static HelloMessage NewHelloMessage()
 {
     return(new HelloMessage(MapUtil.map("user_agent", USER_AGENT)));
 }