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

com.sksamuel.elastic4s.fields.JoinField.scala Maven / Gradle / Ivy

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

object JoinField {
  val `type`: String = "join"
}
case class JoinField(name: String,
                     eagerGlobalOrdinals: Option[Boolean] = None,
                     relations: Map[String, Any] = Map.empty,
                     meta: Map[String, Any] = Map.empty) extends ElasticField {
  override def `type`: String = JoinField.`type`

  def relation(name: String, value: Any): JoinField = copy(relations = relations + (name -> value))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy