I have some documents with ~30 fields, most of which i just want to analyze
with the defaults, a couple i want to use snowballing or other custom
analyzers on.
The recommended way to do this seems to be using the index_name property to
aliase a custom _all field, such as:
curl -XPOST $elasticloc:9200/ss -d '{
"settings" : {
"index.query.default_field" : "newall",
"analysis" : {
"filter" : {
"email" : {
"type" : "pattern_capture",
"preserve_original" : 1,
"patterns" : [
"(\w+)",
"(\p{L}+)",
"(\d+)",
"@(.+)"
]
}
},
"analyzer" : {
"email" : {
"tokenizer" : "uax_url_email",
"filter" : ["email", "lowercase", "unique"]
},
"mysnowball" : {
"type" : "snowball",
"language" : "English"
}
}
}
},
"mappings" : {
"filter" : {
"properties" : {
"ts" : {"type" : "date"},
"cid" : {
"type" : "multi_field",
"path" : "just_name",
"fields" : {
"cid" : {"type" : "string"},
"newall" : {"type" : "string", "index_name" :
"shared"}
}
},
"score" : {
"type" : "multi_field",
"path" : "just_name",
"fields" : {
"spamscore" : {"type" : "integer"},
"newall" : {"type" : "integer", "index_name" :
"shared"}
}
},
"action" : {
"type" : "multi_field",
"path" : "just_name",
"fields" : {
"action" : {"type" : "string"},
"newall" : {"type" : "string", "index_name" :
"shared"}
}
},
"from" : {
"type" : "multi_field",
"path" : "just_name",
"fields" : {
"env_from" : {"type" : "string", "analyzer" :
"email"},
"newall" : {"type" : "string", "analyzer" :
"email", "index_name" : "shared"}
}
},
"rcpt" : {
"type" : "multi_field",
"path" : "just_name",
"fields" : {
"env_rcpt" : {"type" : "string", "analyzer" :
"email"},
"newall" : {"type" : "string", "analyzer" :
"email", "index_name" : "shared"}
}
},
"subject" : {
"type" : "multi_field",
"path" : "just_name",
"fields" : {
"subject" : {"type" : "string", "analyzer" :
"mysnowball"},
"newall" : {"type" : "string", "analyzer" :
"mysnowball", "index_name" : "shared"}
}
}
},
"_ttl" : {"enabled" : true, "default" : "'$datattl'"},
"_timestamp" : {"enabled" : true},
"_all" : {"enabled" : false}
},
}
}'
now my problem is, how do i access this aliased index from kibana (using 3
milestone 4)? Also is there a better way to create this custom _all field
where it includes tokens from a coule different analyzers?
Sorry if this is a terrible question,
Kevin
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ba4a7958-5ea8-4db0-aa7e-687f3ccab644%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.