在linux上運行elasticsearch查詢有什麼正確的方法?我想出了下面的代碼,但是由於我看到很多錯誤,它似乎並不正確。在linux上運行elasticsearch查詢
curl -X GET http://localhost:9200/INDEXED_REPOSITORY/_search?q="constant_score" : {"filter" : { "terms" : { "description" : ["heart", "cancer", and more than 10000 keywords ]}}}}
添加圍繞整個URL單引號。 –