com.sksamuel.elastic4s.fields.GeoPointField.scala Maven / Gradle / Ivy
package com.sksamuel.elastic4s.fields
import com.sksamuel.elastic4s.ext.OptionImplicits._
object GeoPointField {
val `type`: String = "geo_point"
}
case class GeoPointField(name: String,
boost: Option[Double] = None,
copyTo: Seq[String] = Nil,
docValues: Option[Boolean] = None,
ignoreMalformed: Option[Boolean] = None,
ignoreZValue: Option[Boolean] = None,
index: Option[Boolean] = None,
norms: Option[Boolean] = None,
nullValue: Option[String] = None,
store: Option[Boolean] = None,
meta: Map[String, Any] = Map.empty) extends ElasticField {
override def `type`: String = GeoPointField.`type`
def docValues(docValues: Boolean): GeoPointField = copy(docValues = docValues.some)
}