Re: Elasticsearch field mapping, dynamic_templates

2014-08-04 Thread sirkubax
I did migrate to ES 1.3.1 I did try to do the same trick as before, but it's fail to PUT oryginal, just dumped settings. Any ideas? curl -XGET localhost:9200/_template?pretty template_all curl -XPUT localhost:9200/_template/*?pretty -d @template_all *{* * error :

Re: Elasticsearch field mapping, dynamic_templates

2014-08-04 Thread sirkubax
*Ok, got it:* *I did it template by template* *When you capture template (for example: logstash* curl -XGET localhost:9200/_template/logstash?pretty template_logstash *you get:* cat template_logstash { logstash : { order : 0, template : logstash-*, settings : {

Re: Elasticsearch field mapping, dynamic_templates

2014-08-03 Thread sirkubax
I dod migrate to ES 1.3.1 I did try to do the same trick, but it's fail to PUT oryginal, just dumped settings. Any ideas? curl -XGET localhost:9200/_template?pretty template_all curl -XPUT localhost:9200/_template/*?pretty -d @template_all *{* * error :

Re: Elasticsearch field mapping, dynamic_templates

2014-06-17 Thread sirkubax
*Hi Alex, That's more or less what I did:* curl -XGET localhost:9200/_template?pretty template_all edit template_all and put it back: curl -XPUT localhost:9200/_template/* -d @template_all * By ES is 1.0.1, I've seen that there is major change in templates in ES 1.2. Do you

Re: Elasticsearch field mapping, dynamic_templates

2014-06-16 Thread Alexander Reelsen
Hey, using your curl call you only set the mapping for existing indices, but not for newly created ones. You may want to consider using index templates for this specific field. --Alex On Mon, Jun 9, 2014 at 4:45 PM, sirkubax jakubxmuszyn...@googlemail.com wrote: As I did mention here

Elasticsearch field mapping, dynamic_templates

2014-06-09 Thread sirkubax
As I did mention here https://groups.google.com/forum/#!topic/elasticsearch/7Bn5Pc6TSgs I have some sorting issue when date is stored in string format. *I did try to set field format as date, but it is overide when date is inserted into index.The mapping was:* curl -XPUT