Template for logstash for disable analyzer on string

hi all i need some help about this template, i have to disable all
analyzing process for my logstash logs beacuse i need to make a complete
search without any split fields:

  1. curl -XPUT 'http://localhost:9200/_template/foo' -d '
  2. {
  3. "template" : "logstash-*",
  4. "mappings" : {
  5. "_default_" : {
    
  6.   "dynamic_templates" : [
    
  7.     {
    
  8.        "template_1" : {
    
  9.        "path_match" : "@fields.*",
    
  10.        "match_mapping_type" : "string",
    
  11.        "mapping" : {
    
  12.          "type" : "string",
    
  13.          "index" : "not_analyzed"
    
  14.        }
    
  15.       }
    
  16.      }
    
  17.     ]
    
  18.   }
    
  19. }
    
  20. }'

iam not able to understand what is wrong the behaviour of my search its
the same with and without this template.

Thanks to all
Regards.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Il giorno venerdì 21 giugno 2013 14:39:58 UTC+2, stefano...@gmail.com ha
scritto:

hi all i need some help about this template, i have to disable all
analyzing process for my logstash logs beacuse i need to make a complete
search without any split fields:

  1. curl -XPUT 'http://localhost:9200/_template/foo' -d '
  2. {
  3. "template" : "logstash-*",
  4. "mappings" : {
  5. "_default_" : {
    
  6.   "dynamic_templates" : [
    
  7.     {
    
  8.        "template_1" : {
    
  9.        "path_match" : "@fields.*",
    
  10.        "match_mapping_type" : "string",
    
  11.        "mapping" : {
    
  12.          "type" : "string",
    
  13.          "index" : "not_analyzed"
    
  14.        }
    
  15.       }
    
  16.      }
    
  17.     ]
    
  18.   }
    
  19. }
    
  20. }'

iam not able to understand what is wrong the behaviour of my search
its the same with and without this template.

Thanks to all
Regards.

ok i have fixed the usses by removing any indexes that was previus created!

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.