Beispiel #1
0
        public IIndexer <TransactionReceiptVO> CreateIndexerForTransactionReceiptVO(
            string indexName, TransactionReceiptVOIndexDefinition indexDefinition, int documentsPerBatch = 1)
        {
            var indexClient  = GetOrCreateIndexClient(indexName);
            var azureIndexer = new AzureTransactionReceiptVOIndexer(indexClient, indexDefinition, documentsPerBatch);

            _indexers.Add(azureIndexer);
            return(azureIndexer);
        }
Beispiel #2
0
        public IIndexer <TransactionReceiptVO> CreateIndexerForTransactionReceiptVO <TSearchDocument>(
            string indexName, Func <TransactionReceiptVO, TSearchDocument> mapper, int documentsPerBatch = 1)
            where TSearchDocument : class, IHasId
        {
            var indexClient  = GetOrCreateIndexClient(indexName);
            var azureIndexer = new AzureTransactionReceiptVOIndexer <TSearchDocument>(indexClient, mapper, documentsPerBatch);

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