Hi,
I have a pretty simple question (I hope):
I have the following "structure" -
curl -XPOST 'http://localhost:9200/test/records/' -d '{
"session_id" : "abc",
"user_id" : 1,
"timestamp" : 1359245610,
"coords" : ["1x1", "1x1", "1x1", "4x4", "5x5"]
}'
curl -XPOST 'http://localhost:9200/test/records/' -d '{
"session_id" : "abc",
"user_id" : 1,
"timestamp" : 1359245610,
"coords" : ["2x2", "3x3", "1x1", "4x4", "5x5"]
}'
When I do the following:
curl -XGET 'http://localhost:9200/test/_search?pretty=true' -d '{
"query" : {
"matchAll" : {}
},
"facets" : {
"somename" : { "terms" : {"field" : "coords"} }
}
,"size":0}'
I get:
{
"took" : 3,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 2,
"max_score" : 1.0,
"hits" : [ ]
},
"facets" : {
"somename" : {
"_type" : "terms",
"missing" : 0,
"total" : 8,
"other" : 0,
"terms" : [ {
"term" : "5x5",
"count" : 2
}, {
"term" : "4x4",
"count" : 2
}, {
"term" : "1x1",
"count" : 2
}, {
"term" : "3x3",
"count" : 1
}, {
"term" : "2x2",
"count" : 1
} ]
}
}
}
The question is - how do I make it say that there are actually FOUR "1x1" ?
Thank you!
--