elasticsearch 查询 - 过滤数据列
过滤数据列指的是只查询需要的列 例如 title,content,price等
方式1 restful api
POST http://192.168.199.126:9200/film/dongzuo/_search/
{
"from": 0,
"size": 2,
"_source": {
"include": [
"title",
"price"
]
}
}
方式2 Java接口实现
private TransportClient client;
发表于 2024-04-09 21:56:28 阅读(212)