Sql query is a very fantastic tool offered by EL 7.3. However i cant explain that bug :
When i use SUM with Match , 1 condition, query below works well
POST _xpack/sql?format=txt
{
"query":"SELECT SUM(FlightTimeHour) Avg_Flight_Time FROM flights where MATCH(OriginCountry,'AE') "
}
But if i use 2 or more conditions, SUM and MATCH query below fails :
POST _xpack/sql?format=txt
{
"query":"SELECT SUM(FlightTimeHour) Avg_Flight_Time FROM flights where MATCH(OriginCountry,'AE') OR MATCH(OriginCountry,'FR') "
}
Can someone tell me what is wrong ?
SQL documentation mentions nothing about boolean operators on MATCH. I don't think it is supported.
You can perform above search as below 1. using query instead of Match for full text search
EDIT: Above query as elastic search