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

com.sksamuel.elastic4s.fields.ContextField.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._

case class ContextField(name: String, `type`: String,
                        path: Option[String] = None,
                        precision: Option[Int] = None) {

  def path(path: String): ContextField =
    copy(path = path.some)

  def precision(precision: Int): ContextField =
    copy(precision = precision.some)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy