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

com.sksamuel.elastic4s.requests.searches.SearchScrollRequest.scala Maven / Gradle / Ivy

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

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

import scala.concurrent.duration.FiniteDuration

case class SearchScrollRequest(id: String, keepAlive: Option[String] = None) {

  def keepAlive(keepAlive: String): SearchScrollRequest = copy(keepAlive = keepAlive.some)
  def keepAlive(duration: FiniteDuration): SearchScrollRequest = copy(keepAlive = Some(duration.toSeconds + "s"))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy