Hello,
I've a simple object with nested type, and I would like to have a facet 
that returns terms from this nested object.
I've posted details here (mapping, data in ElasticSearch, and java code to 
build facet request) : 
  
  
    
createindex.sh 
#!/bin/sh
curl -XDELETE http://localhost:9200/records
curl -XPOST http://localhost:9200/records
curl -XPUT http://localhost:9200/records/record/_mapping -d "`cat mapping.json`"
curl -XPUT http://localhost:9200/records/record/1 -d "`cat record-1.json`"
curl -XPUT http://localhost:9200/records/record/2 -d "`cat record-2.json`"
 
mapping.json 
{
    "record": {
        "properties": {
            "id": {"type" : "long"},
            "reference" : {"type" : "string", "index": "not_analyzed"},    
            
            "situations": {
                "type": "nested",
                "properties": {
                    "beginDate": {"type" : "date"}, 
This file has been truncated. show original 
record-1.json 
{
    "id": 1,
    "reference": "RECORD-1",
    "situations": [
        {
            "beginDate": 1136847600000,
            "endDate": 32472140400000,
            "type": "FOO"
        }
    ],
 
This file has been truncated. show original 
  There are more than three files. show original 
   
  
    
    
  
  
 
When I try a matchall with the facet query, Elasticsearch returns me the 
following:
{ 
"facet_situation": {
"entries": [ ], 
"name": "facet_situation", 
"totalCount": 0, 
"otherCount": 0, 
"missingCount": 0
}
Do you have an idea ?
-- 
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 .