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

com.sksamuel.elastic4s.requests.searches.collapse.CollapseRequest.scala Maven / Gradle / Ivy

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

import com.sksamuel.elastic4s.ext.OptionImplicits._
import com.sksamuel.elastic4s.requests.searches.queries.InnerHit

case class CollapseRequest(field: String,
                           inner: Option[InnerHit] = None,
                           maxConcurrentGroupSearches: Option[Int] = None) {

  def inner(inner: InnerHit): CollapseRequest = copy(inner = inner.some)
  def maxConcurrentGroupSearches(max: Int): CollapseRequest = copy(maxConcurrentGroupSearches = max.some)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy