public static FhirIndex GetIndex() { if (index == null) { index = CreateIndex(); } return(index); }
public static void Import(TestContext unused) { Dependencies.Register(); Settings.AppSettings = ConfigurationManager.AppSettings; //FhirMaintenanceService maintenance = Factory.GetFhirMaintenceService(); //maintenance.Initialize(); index = Factory.GetIndex(); }
public static FhirIndex CreateIndex() { MongoDatabase database = MongoDbConnector.Database; MongoCollection<BsonDocument> collection = database.GetCollection(Spark.Search.Config.MONGOINDEXCOLLECTION); Definitions definitions = DefinitionsFactory.GenerateFromMetadata(); ISearcher searcher = new MongoSearcher(collection); IIndexer indexer = new MongoIndexer(collection, definitions); FhirIndex index = new FhirIndex(definitions, indexer, searcher); return index; }
public static void Import(TestContext unused) { Dependencies.Register(); Settings.AppSettings = ConfigurationManager.AppSettings; FhirMaintenanceService maintainance = Factory.GetFhirMaintenanceService(); maintainance.Initialize(false); index = Spark.Search.MongoSearchFactory.GetIndex(); AddTaggedPatient(); }
public static FhirIndex CreateIndex() { MongoDatabase database = MongoDbConnector.Database; MongoCollection <BsonDocument> collection = database.GetCollection(Spark.Search.Config.MONGOINDEXCOLLECTION); Definitions definitions = DefinitionsFactory.GenerateFromMetadata(); ISearcher searcher = new MongoSearcher(collection); IIndexer indexer = new MongoIndexer(collection, definitions); FhirIndex index = new FhirIndex(definitions, indexer, searcher); return(index); }
public static FhirIndex GetIndex() { if (index == null) index = CreateIndex(); return index; }