在通过http客户端发送sql请求时。形式如下:
192.168.90.xxx:9200/_sql?sql=select * from car order by ctime desc limit 0,2
当sql中包含字段排序时,从json中接收的返回数据会进行自动类型识别,不再固定为String类型。
如果sql语句中没有排序,返回的字段都是String类型。
在通过http客户端发送sql请求时。形式如下:
192.168.90.xxx:9200/_sql?sql=select * from car order by ctime desc limit 0,2
当sql中包含字段排序时,从json中接收的返回数据会进行自动类型识别,不再固定为String类型。
如果sql语句中没有排序,返回的字段都是String类型。