Skip to content

Commit 64d986e

Browse files
committed
Add Get Field Mapping API
1 parent 09a73da commit 64d986e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

indices_get_field_mapping.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2012-present Oliver Eilhard. All rights reserved.
2+
// Use of this source code is governed by a MIT-license.
3+
// See http://olivere.mit-license.org/license.txt for details.
4+
15
package elastic
26

37
import (
@@ -37,9 +41,6 @@ func NewGetFieldMappingService(client *Client) *IndicesGetFieldMappingService {
3741
func NewIndicesGetFieldMappingService(client *Client) *IndicesGetFieldMappingService {
3842
return &IndicesGetFieldMappingService{
3943
client: client,
40-
index: make([]string, 0),
41-
typ: make([]string, 0),
42-
field: make([]string, 0),
4344
}
4445
}
4546

indices_get_field_mapping_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2012-present Oliver Eilhard. All rights reserved.
2+
// Use of this source code is governed by a MIT-license.
3+
// See http://olivere.mit-license.org/license.txt for details.
4+
15
package elastic
26

37
import (

0 commit comments

Comments
 (0)