gpt4 book ai didi

Sonar API : projects with key that includes string

转载 作者:行者123 更新时间:2023-12-04 17:50:49 25 4
gpt4 key购买 nike

根据documentation api/components/search,参数q:

Limit search to component names or component keys that contain the supplied string.

不幸的是,该语句仅对名称为真,使用键搜索需要完整的字符串。是否有任何其他可能仅使用键的子字符串来搜索项目?

试过6.3.1和6.4,两个版本都不行。

最佳答案

目前不支持通过部分键搜索组件。

控制这个查询的搜索结果的代码是ComponentMapper.xml中的这个片段:

  <if test="query.nameOrKeyQuery!=null">
and (
p.kee = #{query.nameOrKeyQuery,jdbcType=VARCHAR}
or
upper(p.name) like #{query.nameOrKeyUpperLikeQuery,jdbcType=VARCHAR} escape '/'
)
</if>

这里,nameOrKeyq参数的值,由 ComponentQuery 管理.在上面的代码片段中,您可以看到该值用于完全匹配项目键,或用于部分匹配项目名称。

关于 Sonar API : projects with key that includes string,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45059405/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com