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

com.sksamuel.elastic4s.api.MappingApi.scala Maven / Gradle / Ivy

There is a newer version: 8.15.4
Show newest version
package com.sksamuel.elastic4s.api

import com.sksamuel.elastic4s.requests.mappings.{GetFieldMappingRequest, GetMappingRequest, PutMappingRequest}
import com.sksamuel.elastic4s.Indexes

trait MappingApi {

  val NotAnalyzed: String = "not_analyzed"

  def getMapping(str: String): GetMappingRequest = getMapping(Indexes(str))

  def getMapping(indexes: Indexes): GetMappingRequest = GetMappingRequest(indexes)

  def getMapping(indexes: Indexes, fields: String*): GetFieldMappingRequest = GetFieldMappingRequest(indexes, fields)

  def putMapping(indexes: Indexes): PutMappingRequest = PutMappingRequest(indexes)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy