Esempio n. 1
0
        public IIndexer <FilterLog> CreateIndexerForLog(string indexName, int documentsPerBatch)
        {
            var indexer = new ElasticFilterLogIndexer(indexName, _elasticClient, documentsPerBatch);

            _indexers.Add(indexer);
            return(indexer);
        }
Esempio n. 2
0
        public IIndexer <FilterLog> CreateIndexerForLog <TSearchDocument>(
            string indexName, Func <FilterLog, TSearchDocument> mapper, int documentsPerBatch)
            where TSearchDocument : class, IHasId
        {
            var indexer = new ElasticFilterLogIndexer <TSearchDocument>(indexName, _elasticClient, mapper, documentsPerBatch);

            _indexers.Add(indexer);
            return(indexer);
        }