GET kibana_sample_data_ecommerce/_search
{
"_source": ["order_date","day_of_week"],
"sort":[{"order_date": "desc"}],
"from":"10",
"size": 2,
"query": {
"match_all": {}
}
}
如果有一个字段是数组类型
GET kibana_sample_data_ecommerce/_search
{
"query": {
"match": {
"products.base_price": "90"
}
}
}
GET kibana_sample_data_ecommerce/_search
{
"query": {
"match": {
"customer_full_name": {
"query": "Eddie Perry",
"operator": "and"
}
}
}
}
----------------------MAPPING-----------------------------
1 空值查询
PUT null_value_test
{
"mappings" : {
"properties" : {
"first_name" : {
"type" : &#