scala - Dynamic ElasticSearch mapping using Elastic4s -


i have document want index on elasticsearch, document contains dynamic keys can not know in advance, "spanish" or "french" in following example

"contents": {     "title": {         "spanish": "hola amigos",         "french" : "bonjour les amis"     } } 

i'm using elastic4s dsl in order make mapping (via createindex dsl), can not find how create, library, dynamic mapping based on "match" option ( suggested here), in order specify different analyzer each language stored under path contents.title.

any track please ? :-)

you can't want in elastic4s scala api @ moment. can create dynamic template in java api , use scala api rest of calls.

the dynamic template can set use regex , apply mapping. since know countries in advance (there's ~200) why not spend time , make mapping?


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -