HI,

I have implemented the aggregation in one of my elastic search module. It 
works perfect but the terms aggregation bucket returns only single words 
and truncates the values after space.

Any idea?


Here is my schema, sample query and return:

*Schema:*
community/Ideas/_mapping?pretty
{

  "community" : {
    "mappings" : {
      "Ideas" : {
        "properties" : {
          "body" : {
            "type" : "string"
          },
          "categories" : {
            "type" : "string"
          }

        }

    }

}


*Sample Query:*

POST /community/_search
{
  "aggregations": {
    "Category": {
      "terms": {
        "field": "categories",
        "min_doc_count": 1,
        "size": 0
      }
    }
  },
  "query": {
    "bool": {
      "must": [
        {
          "match": {
            "_all": {
              "query": "ping search"
            }
          }
        }
      ]
    }
  }
}

 *Return*:
   "aggregations": {
      "Category": {
         "doc_count_error_upper_bound": 0,
         "sum_other_doc_count": 0,
         "buckets": [
            {
               "key": "administration",
               "doc_count": 166
            },
            {
               "key": "pingfederate",
               "doc_count": 132
            }
        ]
    }
}

Now "Administration" should be "Administration in domain". But, it somehow 
truncates after administration. It looks fine in the Source node of hits.

Please help.

- Vishal

-- 
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/9652d1d2-39eb-44d3-9b88-b2444801279a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to