Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1517,18 +1517,18 @@ ThisBuild / resolvers ++= Seq(

// For Elasticsearch 6
// Using Jest client
libraryDependencies += "app.softnetwork.elastic" %% s"softclient4es6-jest-client" % 0.14.1
libraryDependencies += "app.softnetwork.elastic" %% s"softclient4es6-jest-client" % 0.14.2
// Or using Rest High Level client
libraryDependencies += "app.softnetwork.elastic" %% s"softclient4es6-rest-client" % 0.14.1
libraryDependencies += "app.softnetwork.elastic" %% s"softclient4es6-rest-client" % 0.14.2

// For Elasticsearch 7
libraryDependencies += "app.softnetwork.elastic" %% s"softclient4es7-rest-client" % 0.14.1
libraryDependencies += "app.softnetwork.elastic" %% s"softclient4es7-rest-client" % 0.14.2

// For Elasticsearch 8
libraryDependencies += "app.softnetwork.elastic" %% s"softclient4es8-java-client" % 0.14.1
libraryDependencies += "app.softnetwork.elastic" %% s"softclient4es8-java-client" % 0.14.2

// For Elasticsearch 9
libraryDependencies += "app.softnetwork.elastic" %% s"softclient4es9-java-client" % 0.14.1
libraryDependencies += "app.softnetwork.elastic" %% s"softclient4es9-java-client" % 0.14.2
```

### **Quick Example**
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ThisBuild / organization := "app.softnetwork"

name := "softclient4es"

ThisBuild / version := "0.14.1"
ThisBuild / version := "0.14.2"

ThisBuild / scalaVersion := scala213

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,26 +146,26 @@ trait ElasticClientDelegator extends ElasticClientApi with BulkTypes {
index: String,
settings: String
): ElasticResult[Boolean] =
delegate.createIndex(index, settings)
delegate.executeCreateIndex(index, settings)

override private[client] def executeDeleteIndex(index: String): ElasticResult[Boolean] =
delegate.deleteIndex(index)
delegate.executeDeleteIndex(index)

override private[client] def executeCloseIndex(index: String): ElasticResult[Boolean] =
delegate.closeIndex(index)
delegate.executeCloseIndex(index)

override private[client] def executeOpenIndex(index: String): ElasticResult[Boolean] =
delegate.openIndex(index)
delegate.executeOpenIndex(index)

override private[client] def executeReindex(
sourceIndex: String,
targetIndex: String,
refresh: Boolean
): ElasticResult[(Boolean, Option[Long])] =
delegate.reindex(sourceIndex, targetIndex, refresh)
delegate.executeReindex(sourceIndex, targetIndex, refresh)

override private[client] def executeIndexExists(index: String): ElasticResult[Boolean] =
delegate.indexExists(index)
delegate.executeIndexExists(index)

// ==================== AliasApi ====================

Expand Down Expand Up @@ -289,16 +289,16 @@ trait ElasticClientDelegator extends ElasticClientApi with BulkTypes {
index: String,
alias: String
): ElasticResult[Boolean] =
delegate.addAlias(index, alias)
delegate.executeAddAlias(index, alias)

override private[client] def executeRemoveAlias(
index: String,
alias: String
): ElasticResult[Boolean] =
delegate.removeAlias(index, alias)
delegate.executeRemoveAlias(index, alias)

override private[client] def executeAliasExists(alias: String): ElasticResult[Boolean] =
delegate.aliasExists(alias)
delegate.executeAliasExists(alias)

override private[client] def executeGetAliases(index: String): ElasticResult[String] =
delegate.executeGetAliases(index)
Expand All @@ -308,7 +308,7 @@ trait ElasticClientDelegator extends ElasticClientApi with BulkTypes {
newIndex: String,
alias: String
): ElasticResult[Boolean] =
delegate.swapAlias(oldIndex, newIndex, alias)
delegate.executeSwapAlias(oldIndex, newIndex, alias)

// ==================== SettingsApi ====================

Expand Down Expand Up @@ -362,10 +362,10 @@ trait ElasticClientDelegator extends ElasticClientApi with BulkTypes {
index: String,
settings: String
): ElasticResult[Boolean] =
delegate.updateSettings(index, settings)
delegate.executeUpdateSettings(index, settings)

override private[client] def executeLoadSettings(index: String): ElasticResult[String] = {
delegate.loadSettings(index)
delegate.executeLoadSettings(index)
}

// ==================== MappingApi ====================
Expand Down Expand Up @@ -440,10 +440,10 @@ trait ElasticClientDelegator extends ElasticClientApi with BulkTypes {
index: String,
mapping: String
): ElasticResult[Boolean] =
delegate.setMapping(index, mapping)
delegate.executeSetMapping(index, mapping)

override private[client] def executeGetMapping(index: String): ElasticResult[String] = {
delegate.getMapping(index)
delegate.executeGetMapping(index)
}

// ==================== RefreshApi ====================
Expand Down