Elasticsearch Script merge the results of two aggregations

2015-02-19 Thread ali balci
I use aggregrations on elasticsearch version 1.3.8. I use aggregation script for awhile today ıt didnt work. Please help ı cant find any solution : This the mapping: mappings: { product: { properties: { brandId: { type: integer

Re: Elasticsearch Script merge the results of two aggregations

2015-02-19 Thread ali balci
I second error : { error: SearchPhaseExecutionException[Failed to execute phase [query_fetch], all shards failed; shardFailures {[g][test][0]: RemoteTransportException[[Mammomax][inet[/192.168.1.8:9300]][search/phase/query+fetch]]; nested: SearchParseException[[test][0]:

Re: Elasticsearch Script merge the results of two aggregations

2015-02-19 Thread Masaru Hasegawa
Hi, Looks like you are using lucene expression [1]. See the link for the limitation of lucene expression. Today it only supports numeric values. Since terms agg doesn’t have lang property, probably you have “script.default_lang set to “expression in elasticsearch.yml? FYI, if you put