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

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

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

object AnnotatedTextField {
  val `type` = "annotated_text"
}
case class AnnotatedTextField(name: String,
                              analyzer: Option[String] = None,
                              searchAnalyzer: Option[String] = None,
                              searchQuoteAnalyzer: Option[String] = None,
                              copyTo: Seq[String] = Nil) extends ElasticField {
  override def `type`: String = AnnotatedTextField.`type`

  def analyzer(name: String): AnnotatedTextField = copy(analyzer = Option(name))

  def searchAnalyzer(name: String): AnnotatedTextField = copy(searchAnalyzer = Option(name))

  def searchQuoteAnalyzer(name: String): AnnotatedTextField = copy(searchQuoteAnalyzer = Option(name))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy