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

com.sksamuel.elastic4s.fields.IpField.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 IpField {
  val `type`: String = "ip"
}
case class IpField(name: String,
                   boost: Option[Double] = None,
                   docValues: Option[Boolean] = None,
                   ignoreMalformed: Option[Boolean] = None,
                   index: Option[Boolean] = None,
                   nullValue: Option[String] = None,
                   store: Option[Boolean] = None) extends ElasticField {
  override def `type`: String = IpField.`type`

  def boost(boost: Double): IpField = copy(boost = boost.some)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy