我正在与poster合作,现在使用curl 时,我想尝试使用从索引中获取所有数据
curl -X GET "localhost:9200/_search" -H 'Content-Type: application/json' -d'
{
"query": {
"match_all": {}
}
}
但我想写一个搜索并返回所有数据,我的索引名称是tourdata,类型是tours
127.0.0.1:9200/tourdata/tours/_search
如何继续
所以我发现我需要在查询参数中添加大小,这对我很有效。
127.0.0.1:9200/tourdata/tours/_search?size=7000&pretty=true