码迷,mamicode.com
首页 > 其他好文 > 详细

dtl

时间:2017-08-18 18:33:20      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:elastic   highlight   field   dev   sea   tin   cat   5.4   smart   

GET /mall/product/_search
{
"query": {
"term": {
"productID": 14
}
}
}

GET mall/product/_search
{
"query": {
"term": {
"id": {
"value": "14"
}
}
}
}

GET _search
{
"query": {
"match_all": {}
}
}

GET /mall/product/_search

GET _search
{
"query": {
"match_all": {}
}
}

GET _search
{
"query": {
"match_all": {}
}
}

GET /mall/product/14

GET /mall/product/10982

GET /mall/product/_search
{
"query": {
"match": {
"productName" : {
"query" : "小米"
}
}
}
}

GET /mall/product/_search
{
"query" : {
"match": { "productName": "手机" }
},
"highlight" : {
"fields" : {
"productName" : {}
}
}
}

GET /mall/product/_search
{
"sort": [
{ "productID": { "order": "asc" }}

]
}

GET /dev58-elasticsearch5.4.2/product/_search

DELETE /mall/product/35811

DELETE /dev58-elasticsearch5.4.2

DELETE /mall

DELETE defaultindex

GET /hotel/hotelfullinfo/_search

GET /hotel/hotelfullinfo/_search
{
"query": {
"term": {
"iD": 180566
}
}
}

GET /hotel/hotelfullinfo/_search
{
"query": {
"term": {
"destinationID": 180026
}
}
}

GET /hotel/hotelfullinfo/_search
{
"query": {
"term": {
"hotelID": 9846
}
}
}


DELETE /destination

GET _analyze
{
"analyzer" : "ik_max_word",
"text" : "上海"
}

GET _analyze
{
"analyzer" : "ik_smart",
"text" : "上海"
}

GET _analyze
{
"analyzer" : "pinyin",
"text" : "上海"
}

GET /destination/destination/_search

GET /hotel/region/_search

GET /hotel/hotelinfo/_search

GET /hotel/hotelfullinfo/_search

GET /mall/productbrand/_search

GET /mall/productcategory/_search

GET /mall/product/_search

POST hotel/hotelfullinfo/_delete_by_query?conflicts=proceed
{
"query": {
"match_all": {}
}
}

POST hotel/destination/_delete_by_query?conflicts=proceed
{
"query": {
"match_all": {}
}
}

GET /hotel/destination/67254

dtl

标签:elastic   highlight   field   dev   sea   tin   cat   5.4   smart   

原文地址:http://www.cnblogs.com/a-du/p/7390671.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!