Filters is not working for a particular index

Hello there,

I'm finding that a query is not working for a particular index and type,
but works for something else.

It is as follows. I have created items/item like so. and same with
users/user (just index/type name changed)

curl -XPUT http://localhost:9200/items -d '
{
"settings" : {
"analysis" : {
"analyzer" : {
"stem" : {
"tokenizer" : "standard",
"filter" : ["standard", "lowercase", "stop",
"porterStem"]
}
}
}
},
"mappings" : {
"item" : {
"dynamic" : true,
"properties" : {
"default" : {
"type" : "string",
"analyzer" : "stem"
}
}
}
}
}'

I'm using filters to query users like so (WORKS YIELDS 2 HITS LIKE IT
SHOULD)

curl -XGET 'http://localhost:9200/users/user/_search?pretty=true' -d
'{"query":
{"constant_score":{ "filter": {"terms":{"fb_id":["aaaa",
"bbbb"],"execution":"bool"}} }}}'

then i do the same thing for items like so (YIELDS 0 HITS)
curl -XGET 'http://localhost:9200/items/item/_search?pretty=true' -d
'{"query":
{"constant_score":{ "filter":
{"terms":{"list_key":["aaa"],"execution":"bool"}} }}}'

When i search using below, I can see that the item is in there
curl -XGET 'http://localhost:9200/items/item/_search?pretty=true&q=:'

{
"_index" : "items",
"_type" : "item",
"_id" : "someid",
"_score" : 1.0, "_source" : {"d_added": 1360829619000.0, "p": 2,
"list_key": "aaa", "key": "someid"}

I'm completely at a loss here why it works for one, and not the other.

any helps is appreciated

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