Exemplo n.º 1
0
        public async Task IndexSingleEntry(int entryId, CancellationToken token)
        {
            var entryItem = await _singleEntryIndexProvider.GetSingleEntryToIndex(entryId);

            await _indexingClient.Index(new[] { entryItem }, _singleEntryIndexProvider.IndexName, token);
        }
Exemplo n.º 2
0
        public async Task Handle(IndexQuery message, IMessageHandlerContext context)
        {
            await _indexingClient.Index(new[] { message }, _options.AnalyticsIndex, new CancellationToken());

            _logger.LogInformation("Indexed query \"{query}\"", message.Query);
        }