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:
- curl -XPUT 'http://localhost:9200/_template/foo' -d '
- {
- "template" : "logstash-*",
- "mappings" : {
-
"_default_" : {
-
"dynamic_templates" : [
-
{
-
"template_1" : {
-
"path_match" : "@fields.*",
-
"match_mapping_type" : "string",
-
"mapping" : {
-
"type" : "string",
-
"index" : "not_analyzed"
-
}
-
}
-
}
-
]
-
}
-
}
- }'
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:
- curl -XPUT 'http://localhost:9200/_template/foo' -d '
- {
- "template" : "logstash-*",
- "mappings" : {
-
"_default_" : {
-
"dynamic_templates" : [
-
{
-
"template_1" : {
-
"path_match" : "@fields.*",
-
"match_mapping_type" : "string",
-
"mapping" : {
-
"type" : "string",
-
"index" : "not_analyzed"
-
}
-
}
-
}
-
]
-
}
-
}
- }'
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.