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

com.sksamuel.elastic4s.requests.admin.ShrinkIndexRequest.scala Maven / Gradle / Ivy

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

import com.sksamuel.elastic4s.ext.OptionImplicits._

case class ShrinkIndexRequest(source: String,
                              target: String,
                              waitForActiveShards: Option[Int] = None,
                              settings: Map[String, String] = Map.empty,
                              shards: Option[Int] = None) {

  def shards(shards: Int): ShrinkIndexRequest = copy(shards = shards.some)
  def settings(map: Map[String, String]): ShrinkIndexRequest = copy(settings = map)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy