Not able to make any sense of this:
{"from":0,"size":20,"sort":{"created_time":"desc"},"query":{"term":{"tags":{"value":"permissions"}}}}
Returns as expected:
{"took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":null,"hits":[{"_index":"blog","_type":"BlogPost","_id":"4a7a21b1-c20f-4131-9938-6306319f3102","_score":null,
"_source" : {
"year": 2013,
"month": 10,
"day": 17,
"created_time": 1382026481,
"id": "4a7a21b1-c20f-4131-9938-6306319f3102",
"tags": [
"permissions",
"UGC",
"photographer"
]
},"sort":[1382026481]}]}}
And:
{"from":0,"size":20,"sort":{"created_time":"desc"},"query":{"term":{"tags":{"value":"photographer"}}}}
returns as expected... but
{"from":0,"size":20,"sort":{"created_time":"desc"},"query":{"term":{"tags":{"value":"UGC"}}}}
returns nothing.
Tags is mapped simply as "tags":{"type":"string"}.
--
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.