在kibana的devtools 下的查询


GET es_test_final8/_mapping

GET _search
{
  "query": {
    "match_all": {}
  }
}
PUT /test
GET /test
POST _analyze
{
 "analyzer": "standard" 
 , "text": "你好呀"
}

POST test_index/_analyze
{
 "analyzer": "username" 
 , "text": "hello world"
}
PUT /test_index
POST /test_index/product1/_mapping
{"product1":{"properties":{"title":{"type":"text","store":"true"},"description":{"type":"text","index":"false"},"price":{"type":"double"},"onSale":{"type":"boolean"},"type":{"type":"integer"},"createDate":{"type":"date"}}}}

PUT /test_index
{"mappings":{"product":{"dynamic":false,"properties":{"title":{"type":"text","store":"true"},"description":{"type":"text","index":"false"},"price":{"type":"double"},"onSale":{"type":"boolean"},"type":{"type":"integer"},"createDate":{"type":"date"}}}}}
GET test_index/_mapping
DELETE /test_index

























PUT /test_index1
{"mappings": {"doc":{"dynamic":false,"properties":{"title":{"type":"text"}}}}}

POST test_index1/doc/
{"title":"woow","name":"xiaoming"}

GET /test_index1/_mapping
POST test_index1/doc/_search
{"query":{"match":{"title":"woow"}}}

DELETE test_index1


PUT /test_indexpy
{"mappings": {"doc":{"dynamic":true,"properties":{"username":{"type":"text","fields":{"pinyin":{"type":"text","analyzer":"pinyin"}}}}}}}

POST test_indexpy/doc/
{"username":"张文","name":"xiaoming"}

POST test_indexpy/doc/_search
{"query":{"match":{"username.pinyin":"liu"}}}

GET _analyze
{
  "analyzer": "pinyin",
  "text": "刘德华"
}
POST test_indexpy1/doc/
{"username":"张文","name":"xiaoming"}
GET test_indexpy1/doc/_mapping




GET _search

GET es_test_final8/_mapping

DELETE es_test_final8

put es_test_final8;




GET _search
{
  "query": {
  "term" : {
    "called_api_id" : {
      "value" : "462ef1f9-09e6-47be-b65-9d830192d4fa",
      "boost" : 1.0
    }
  }
}
}




GET es_test_final8/logger/_search{
  {
  "query": {
  "term" : {
    "call_logs_id" : {
      "value" : "462ef1f9-09e6-47be-b65-9d830192d4fa",
      "boost" : 1.0
    }
  }
}}




  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值