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
}
}
}}
在kibana的devtools 下的查询
最新推荐文章于 2024-05-19 23:10:04 发布