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
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]:
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