I loaded sample data below using a template. The "str_type_analyzed" field is set to "analyzed". However, in Kibana 4 I do not get any hits when I search for "red". It does not matter if I type use double quotes or not. I have loaded other data w/o templates and had no problem with searches. When I use visualize I can see that this field was tokenized. Any help is appreciated. Thanks, Frank.
My two rows of data:
1ABC|2015-08-11 08:52:10.052|123|500.25|"This car is red"|"Red Ford"
2DEF|2015-07-11 08:52:10.052|456|200.25|"This car is blue"|"Blue Ford"
my template:
{
"template" : "maptest",
"order": 1,
"mappings" : {
"default" : {
"_all" : {"enabled" : false},
"properties" : {
"pk_col": { "type": "string", "index": "not_analyzed","doc_values" : true },
"dt_type": { "type": "date", "index": "not_analyzed", "format": "yyyy-MM-dd HH:mm:ss.SSS", "doc_values" : true},
"int_type": { "type": "integer","doc_values" : true },
"float_type": { "type": "float","doc_values" : true },
"str_type_analyzed": { "type": "string" , "index": "analyzed" },
"str_type_not_analyzed": { "type": "string", "index": "not_analyzed" ,"doc_values" : true }
}
}
}
}