Ejemplo n.º 1
0
 public static Task CreateDocumentDefaultIndex <T>(this IElasticClient client, string indexName,
                                                   CancellationToken cancellationToken)
     where T : ElasticDocument
 => client.CreateDocumentIndex <T>(indexName, create => create.Map <T>(map => map.AutoMap()), cancellationToken);