Great feature I'd love to use, but think I'll need a little help:
I'm using elasticsearch-0.8.0.
dynamic-mapping.json:
{
"default" : {
"_all" : {"store" : "yes", "term_vector" : "with_positions_offsets"}
}
}
Indexed data (5 times):
http://localhost:9200/twitter/tweet/
{
"user" : "kimchy",
"postDate" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
}
Query:
http://localhost:9200/_all/_search
{
query : {
term : { "_all" : "kimchy" }
},
highlight : {
fields : {
"_all" : { }
}
}
}
Result:
{"_shards":{"total":10,"successful":10,"failed":0},"hits":{"total":5,"hits":[{"_index":"twitter","_type":"tweet","_id":"274cc448-5798-4ff6-8127-055817bab3ab", "_source" : {
"user" : "kimchy",
"postDate" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
},"highlight":{"_all":null}},{"_index":"twitter","_type":"tweet","_id":"e0e0132e-6cf3-4908-b90d-71695f6f90ce", "_source" : {
"user" : "kimchy",
"postDate" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
},"highlight":{"_all":null}},{"_index":"twitter","_type":"tweet","_id":"6747c38e-958e-4c4e-b7c1-690ee740222f", "_source" : {
"user" : "kimchy",
"postDate" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
},"highlight":{"_all":null}},{"_index":"twitter","_type":"tweet","_id":"3821904f-6b48-4ff1-879b-1cc4b1d5264e", "_source" : {
"user" : "kimchy",
"postDate" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
},"highlight":{"_all":null}},{"_index":"twitter","_type":"tweet","_id":"219ceb75-ee98-45ce-b4d9-e132ecb32645", "_source" : {
"user" : "kimchy",
"postDate" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
},"highlight":{"_all":null}}]}}
How can I get the highlighting to work?
Thanks,
Itsu