Exemple #1
0
        public EsSearcher(IEsClientProvider clientProvider, IIndexNameProvider indexNameProvider, ElasticsearchOptions options)
        {
            _indexNameProvider = indexNameProvider;
            _options           = options;
            var client = clientProvider.Provide();

            _logic = new EsLogic <TDoc>(client);
        }
Exemple #2
0
 public IndexSpecificEsSearcher(string indexName, EsLogic <TDoc> logic)
 {
     _logic    = logic;
     IndexName = indexName;
 }