public EsSearcher(IEsClientProvider clientProvider, IIndexNameProvider indexNameProvider, ElasticsearchOptions options) { _indexNameProvider = indexNameProvider; _options = options; var client = clientProvider.Provide(); _logic = new EsLogic <TDoc>(client); }
public IndexSpecificEsSearcher(string indexName, EsLogic <TDoc> logic) { _logic = logic; IndexName = indexName; }