Ok , I think I solved the issue using index templates. However, I still 
feel like there's something missing here.. so I would appreciate any 
further information...

Cheers

El jueves, 2 de octubre de 2014 11:08:53 UTC+2, Adrian Luna escribió:
>
> From the documentation you can set up default mapping definition for every 
> index just putting the .json file inside 
> $ELASTICSEARCH_HOME/config/mappings/_default
>
> However, after doing this, I just get the error:
>
> MapperParsingException[mapping [default_mapping]]; nested: 
> MapperParsingException[Root type mapping not empty after parsing! 
>
> My mapping file looks like:
>
>     
>      {
>       "event" : {
>         "dynamic_templates" : [
>           {
>             "template_1" : {
>               "match" : "*",
>               "mapping" : {
>                 "type" : "string",
>                 "index": "not_analyzed"
>               }
>             }
>           }
>         ]
>       }
>     }
>
>
>
> The problem is that I need to setup several things for each index I 
> create, but I don't want to care about updating the map per index, since I 
> would need to ask if the index exists before doing this. That means, during 
> my workflow I just want to index documents, do not want to care about 
> settings stuff.
>
> Thanks in advance!
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/99f3e281-a3cc-47b8-aaae-5b5912a4ccd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to