Artifactory Query Language限制输出

时间:2015-11-30 08:36:10

标签: curl artifactory artifactory-query-lang

我使用curl运行AQL:

curl -vv  -u 'admin':'password' -X POST -H "Content-Type: application/json" -d @e.txt http://somecompany.com:8081/artifactory/api/search/aql

这是e.txt文件:

items.find(
    {
        "repo":{"$eq":"yum-repo"},
        "type":{"$eq":"file"},
        "name":{"$match":"*.rpm"}
    }
).include("repo", "path", "name", "@rpm.metadata.name")

这是我输出的一部分:

 "range" : {
    "start_pos" : 0,
    "end_pos" : 1000,
    "limit" : 1000
  }

它将输出限制为1000我试图limit(9999)它没有帮助

1 个答案:

答案 0 :(得分:1)

默认情况下,Artifactory配置为将AQL查询返回的结果数限制为1000 您可以在$ARTIFACTORY_HOME/etc/artifactory.system.properties文件中更改此配置:

## Maximum number of results to return when searching through the UI
artifactory.search.maxResults=500

## The backend limit of maximum results to return from sql queries issued by users. Should be higher than maxResults.
artifactory.search.userQueryLimit=1000

有关详细信息,请参阅有关searches

的文档