Highlighting bug in 0.90.0 and possibly 0.90.1?

when using an nGram filter on a field, when trying to highlight said field
in search results, elasticsearch highlights the entire word instead of just
the query

so if I have the text "American" and I search for "rican"
highlighting should look like this American
but instead it does this American

--
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.

Just follow the directions here http://stackoverflow.com/a/15005321/141822
What you'll get back if you're using elasticsearch 0.90.0 and 0.90.1 is

{
"took" : 11,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 3,
"max_score" : 0.71231794,
"hits" : [ {
"_index" : "myindex",
"_type" : "product",
"_id" : "0KyaIB8xRmqE-g0hl0ky6g",
"_score" : 0.71231794,
"fields" : {
"code" : "Samsung Galaxy i7500"
},
"highlight" : {
"code.ngram" : [ "Samsung Galaxy i7500" ],
"code" : [ "Samsung Galaxy i7500" ]
}
}, {
"_index" : "myindex",
"_type" : "product",
"_id" : "vZwpcBu0QAyGmP9LHz1hUA",
"_score" : 0.71231794,
"fields" : {
"code" : "Samsung Galaxy 5 Europa"
},
"highlight" : {
"code.ngram" : [ "Samsung Galaxy 5 Europa" ],
"code" : [ "Samsung Galaxy 5 Europa" ]
}
}, {
"_index" : "myindex",
"_type" : "product",
"_id" : "7sNkZAlxSlmuLZA9S68bvg",
"_score" : 0.71231794,
"fields" : {
"code" : "Samsung Galaxy Mini"
},
"highlight" : {
"code.ngram" : [ "Samsung Galaxy Mini" ],
"code" : [ "Samsung Galaxy Mini" ]
}
} ]
}
}

which is clearly not correct

--
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.