static void SetUpElasticSearchClient() { var settings = new ConnectionSettings(new Uri(ElasticSearchUrl)).DefaultIndex(DefaultIndexName); var client = new ElasticClient(settings); _elasticSearchWrapper = new ElasticSearchClientWrapper(client); }
public SearchIndexSubsystem(ITextParsingService textParsingService, IPostService postService, ITopicService topicService, IErrorLog errorLog, IElasticSearchClientWrapper elasticSearchClientWrapper) { _textParsingService = textParsingService; _postService = postService; _topicService = topicService; _errorLog = errorLog; _elasticSearchClientWrapper = elasticSearchClientWrapper; }
public SearchRepository(ISqlObjectFactory sqlObjectFactory, ITopicRepository topicRepository, IElasticSearchClientWrapper elasticSearchClientWrapper) : base(sqlObjectFactory) { _topicRepository = topicRepository; _elasticSearchClientWrapper = elasticSearchClientWrapper; }