elasticsearch 搜索查询以匹配所有数据并返回所有数据,而不使用curl
我正在与postman合作,我想尝试使用从索引中获取所有数据,现在使用curl
elasticsearch 搜索查询以匹配所有数据并返回所有数据,而不使用curl,
elasticsearch,
elasticsearch,我正在与postman合作,我想尝试使用从索引中获取所有数据,现在使用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 如何继
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
对于较大的数据集,您可能希望使用Scroll API