File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
src/Elastic.Clients.Elasticsearch
tests/Tests.Core/ManagedElasticsearch/NodeSeeders Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ private void RefreshOnCompleted()
103
103
if ( rc is not null )
104
104
request . RequestConfiguration = new RequestConfiguration { RequestMetaData = rc } ;
105
105
106
- var refresh = _client . IndexManagement . Refresh ( request ) ;
106
+ var refresh = _client . Indices . Refresh ( request ) ;
107
107
108
108
if ( ! refresh . IsValid )
109
109
throw Throw ( $ "Refreshing after all documents have indexed failed", refresh . ApiCall ) ;
Original file line number Diff line number Diff line change 22
22
#nullable restore
23
23
namespace Elastic . Clients . Elasticsearch . IndexManagement
24
24
{
25
- public class IndexManagementNamespace : NamespacedClientProxy
25
+ public class IndicesNamespace : NamespacedClientProxy
26
26
{
27
- internal IndexManagementNamespace ( ElasticsearchClient client ) : base ( client )
27
+ internal IndicesNamespace ( ElasticsearchClient client ) : base ( client )
28
28
{
29
29
}
30
30
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public partial class ElasticsearchClient
52
52
53
53
public IlmNamespace Ilm { get ; private set ; }
54
54
55
- public IndexManagementNamespace IndexManagement { get ; private set ; }
55
+ public IndicesNamespace Indices { get ; private set ; }
56
56
57
57
public IngestNamespace Ingest { get ; private set ; }
58
58
@@ -75,7 +75,7 @@ private partial void SetupNamespaces()
75
75
Eql = new EqlNamespace ( this ) ;
76
76
Graph = new GraphNamespace ( this ) ;
77
77
Ilm = new IlmNamespace ( this ) ;
78
- IndexManagement = new IndexManagementNamespace ( this ) ;
78
+ Indices = new IndicesNamespace ( this ) ;
79
79
Ingest = new IngestNamespace ( this ) ;
80
80
Nodes = new NodesNamespace ( this ) ;
81
81
SearchableSnapshots = new SearchableSnapshotsNamespace ( this ) ;
Original file line number Diff line number Diff line change @@ -154,9 +154,9 @@ public async Task DeleteIndicesAndTemplatesAsync(bool alreadySeeded)
154
154
{
155
155
var tasks = new List < Task >
156
156
{
157
- Client . IndexManagement . DeleteAsync ( typeof ( Project ) ) ,
158
- Client . IndexManagement . DeleteAsync ( typeof ( Developer ) ) ,
159
- Client . IndexManagement . DeleteAsync ( typeof ( ProjectPercolation ) )
157
+ Client . Indices . DeleteAsync ( typeof ( Project ) ) ,
158
+ Client . Indices . DeleteAsync ( typeof ( Developer ) ) ,
159
+ Client . Indices . DeleteAsync ( typeof ( ProjectPercolation ) )
160
160
} ;
161
161
162
162
if ( alreadySeeded )
@@ -422,7 +422,7 @@ private async Task SeedIndexDataAsync()
422
422
423
423
await Task . WhenAll ( tasks ) . ConfigureAwait ( false ) ;
424
424
425
- await Client . IndexManagement . RefreshAsync ( new RefreshRequest ( Indices . Index ( typeof ( Project ) ) ) ) . ConfigureAwait ( false ) ;
425
+ await Client . Indices . RefreshAsync ( new RefreshRequest ( Indices . Index ( typeof ( Project ) ) ) ) . ConfigureAwait ( false ) ;
426
426
}
427
427
428
428
// private Task<PutIndexTemplateResponse> CreateIndexTemplateAsync() => Client.Indices.PutTemplateAsync(
You can’t perform that action at this time.
0 commit comments