Elasticsearch version - 6.6.0
JVM version -1.8
OS version window server 2012 R2
I am running the below query using the xpack api
{
"query":"Select role as "role" , sum(customerincome ) as "sum_customerincome" FROM message_index where (Query('role:Son') OR Query('role:Wife')) GROUP BY role"
}
but facing the below error,
"root_cause": [
{
"type": "sql_illegal_argument_exception",
"reason": "Cannot evaluate script for expression StringQueryPredicate[role :Son,]"
}
]
please advice.