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
On Mon, Feb 14, 2022 at 04:34:20PM +0800, Cao Xueliang wrote:
># auto submit cci-makepkg before run test suite
>
>example:
>- job.yaml
>---
>'#! rpmbuild.yaml':
>suite: rpmbuild
>category: functional
>rpmbuild:
>repo_addr: https://vault.centos.org/6.10/os/Source/SPackages/ed-1.1-3.3.el6.src.rpm
>arch: aarch64
>custom_repo_name: unstable/compatible/6
>mount_repo_addr: https://api.compass-ci.openeuler.org:20018/rpm/testing/openeuler-20.03-LTS-…
>1/compat-centos6/standard_\$basearch/\$basearch
>mount_repo_name: compatible-6
>docker_image: openeuler:20.03-LTS-SP1
>```
>- generate cci-makepkg.yaml
># detect $LKP_SRC/pkg/rpmbuild/PKGBUILD first
># detect /srv/initrd/pkg/container/openeuler/aarch64/20.03-LTS-SP1/rpmbuild/latest.cgz
>```
>suite: cci-makepkg
>category: functional
>
>cci-makepkg:
> benchmark: rpmbuild # from rpmbuild.yaml
>os: # from rpmbuild.yaml
>os_arch: # from rpmbuild.yaml
>os_mount: # from rpmbuild.yaml
>```
Looks good.
>- submit cci-makepkg.yaml & rpmbuild.yaml
> - if cci-makepkg job success and exists latest.cgz then submit rpmbuild.yaml
> - if cci-makepkg job not success then echo error & no need submit rpmbuild.yaml
Just to make it clear:
Here "submit cci-makepkg.yaml" should not mean "cci submit".
The scheduler should
- check and setup job depends
- auto create and dispatch cci-makepkg.yaml
- continue dispatch rpmbuild.yaml, when the above job succeeded
Thanks,
Fengguang
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
Thanks,
Fengguang