Hi everyone,

I think I misunderstood something.
I have "products" documents with a nested property called "skus"

here's the query I do : 
{
  "query": {
    "query_string": {
      "query": "*"
    }
  },
  "facets": {
    "test_nested": {
      "nested": "skus",
      "terms": {
        "field": "myfield"
      }
    }
  }
}

I was expected to have all hits (ok) and a facets for those hits on every 
"myfield" possibilites.
Instead of that, the facet return only the first result facet -> value of 
skus.myfield of the first result.

Am i wrong somewhere ?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/e8e09c08-7a1c-4045-9497-bb3861bfd84f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to