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

com.sksamuel.elastic4s.requests.admin.SplitIndexRequest.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 SplitIndexRequest(source: String,
                             target: String,
                             waitForActiveShards: Option[Int] = None,
                             shards: Option[Int] = None,
                             settings: Map[String, String] = Map.empty) {

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy