On Tue, Feb 15, 2022 at 09:35:52AM +0800, Wei Jihui wrote:
>On Mon, Feb 14, 2022 at 07:21:33PM +0800, Wu Fengguang wrote:
>>On Mon, Feb 14, 2022 at 06:25:41PM +0800, weijihui wrote:
>>>On Fri, Feb 11, 2022 at 06:51:34PM +0800, Wu Fengguang wrote:
>>>>On Thu, Feb 10, 2022 at 09:25:37PM +0800, Wei Jihui wrote:
>>>>>From: Wei Jihui <weijihuiall(a)163.com>
>>>>>
>>>>>1. /data_api/es/:index/_search is es search by dsl
>>>>
>>>>>2. /data_api/es/:index/_search_by_sql is es search by sql
>>>>
>>>>建议用
>>>> /data_api/_opendistro/_sql
>>>
>>>但是现在用的不是这个接口,用的是https://github.com/NLPchina/elasticsearch-sql
>>
>>两个repo有继承性,基本是兼容的。
>>要么也可以用NLPchina的接口,怎么也比现在的这个好:
>>
>> 2. /data_api/es/:index/_search_by_sql is es search by sql
>
>好的,那就用这个/data_api/es/:index/_nlpcn/sql 指向原始的接口
/data_api/_nlpcn/sql
sinatra match pattern
/data_api/es/:index/_search
sinatra match pattern
/data_api/redis/xxx
sinatra match pattern
Thanks,
Fengguang