creating settings of index using elastic4s
问题 I have some class: class SomeClass(val client: ElasticClient, val config: Config, val configName: String)(implicit val ec: ExecutionContext) extends ElasticSearchRepositoryWrapper[AnotherClass]{ override def mapping: Option[MappingDefinition] = Some( properties( KeywordField("id"), TextField("name").fielddata(true).analyzer("ngram_analyzer"), KeywordField("lang"), BasicField("order", "long"), ... ) ) I'm creating an index with repository.createIndexIfNotExists() using this mapping. Now I must