Skip to content

Commit bc3fbeb

Browse files
committed
to fix get mapping properties with es6 and high level rest client
1 parent 6eff8b7 commit bc3fbeb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

es6/rest/src/main/scala/app/softnetwork/elastic/client/rest/RestHighLevelClientApi.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,14 @@ trait RestHighLevelClientMappingApi extends MappingApi with RestHighLevelClientC
256256
None
257257
)(logger).getOrElse(s""""{$index: {"mappings": {}}}""")
258258
}
259+
260+
override def getMappingProperties(index: String): String = {
261+
tryOrElse(
262+
getMapping(index),
263+
"{\"properties\": {}}"
264+
)(logger)
265+
}
266+
259267
}
260268

261269
trait RestHighLevelClientRefreshApi extends RefreshApi with RestHighLevelClientCompanion {

0 commit comments

Comments
 (0)