A. ElasticSearch怎麼做查詢某個欄位大於某個值的查詢
使用來 _source 過濾。
http://localhost:9200/_search?_source=name
這樣便過自濾除了 name 欄位。
如果使用 Request Body 的話
GET /_search
{
"_source": "name",
"query" : {
//...
}
}
設置為false將會不返回任何 field
GET /_search
{
"_source": false,
"query" : {
"term" : { "user" : "kimchy" }
}