//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @BeforeEach void initLuceneResources() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: internal virtual void InitLuceneResources() { _dirFactory = new Org.Neo4j.Kernel.Api.Impl.Index.storage.DirectoryFactory_InMemoryDirectoryFactory(); Directory dir = _dirFactory.open(_testDir.directory("test")); _writer = new IndexWriter(dir, IndexWriterConfigs.standard()); _searcherManager = new SearcherManager(_writer, true, new SearcherFactory()); }
/// <summary> /// Opens a <seealso cref="Directory lucene directory"/> for the given folder. /// </summary> /// <param name="folder"> the folder that denotes a lucene directory. </param> /// <returns> the lucene directory denoted by the given folder. </returns> /// <exception cref="IOException"> if directory can't be opened. </exception> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public org.apache.lucene.store.Directory openDirectory(java.io.File folder) throws java.io.IOException public virtual Directory OpenDirectory(File folder) { return(_directoryFactory.open(folder)); }