1
我已經查看了StackOverflow和Elastic站點上的其他示例,但我無法使此組合Elasticsearch查詢生效。Elasticsearch合併查詢
個別項目名稱和時間戳的查詢工作,但不是這個組合查詢:
curl -XGET "http://localhost/jenkins/_search/exists" -d'{"query" : {"bool": {"must": [{"match": {"data.projectName": {"query": "QA_Deployment","type": "phrase"}}}]},{"range": {"@timestamp": {"gte": "now-30d","lte": "now"}}}}}'
謝謝@Jettro Coenradie,我的布爾格式很糟糕,你已經糾正它。我不能upvote你的答案,但我會,如果我可以:) –
你應該能夠接受答案。 –