All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sksamuel.elastic4s.api.SettingsApi.scala Maven / Gradle / Ivy

There is a newer version: 8.15.4
Show newest version
package com.sksamuel.elastic4s.api

import com.sksamuel.elastic4s.Indexes
import com.sksamuel.elastic4s.requests.settings.{GetSettingsRequest, UpdateSettingsRequest}

trait SettingsApi {

  def getSettings(index: String, indexes: String*): GetSettingsRequest = getSettings(index +: indexes)
  def getSettings(indexes: Indexes): GetSettingsRequest                = GetSettingsRequest(indexes)

  def updateSettings(index: String, indexes: String*): UpdateSettingsRequest = updateSettings(index +: indexes)
  def updateSettings(indexes: Indexes): UpdateSettingsRequest                = UpdateSettingsRequest(indexes)

  def updateSettings(indexes: Indexes, settings: Map[String, String]) =
    UpdateSettingsRequest(indexes, settings = settings)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy