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

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

There is a newer version: 8.15.4
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy