在elasticsearch中,根據(jù)商品名稱查詢時,沒有數(shù)據(jù)。
創(chuàng)新互聯(lián)建站專業(yè)IDC數(shù)據(jù)服務(wù)器托管提供商,專業(yè)提供成都服務(wù)器托管,服務(wù)器租用,成都移動機房,成都移動機房,成都多線服務(wù)器托管等服務(wù)器托管服務(wù)。
折騰了一天 ,最后將商品名稱字段不分詞進行索引。
{
"mappings": {
"type_product":
{ "properties": {
"type_product_brandId": {
"type": "string"
},
"type_product_businessId": {
"type": "string"
},
"type_product_catalogId": {
"type": "string"
},
"type_product_classifyIds": {
"type": "string"
},
"type_product_createdAt": {
"type": "long"
},
"type_product_delAt": {
"type": "long"
},
"type_product_description": {
"type": "string"
},
"type_product_downAt": {
"type": "long"
},
"type_product_highPrice": {
"type": "long"
},
"type_product_id": {
"type": "string"
},
"type_product_integralPrice": {
"type": "long"
},
"type_product_isWeekReturn": {
"type": "string"
},
"type_product_listInventory": {
"properties": {
"amount": {
"type": "long"
},
"barCode": {
"type": "string"
},
"code": {
"type": "string"
},
"pictures": {
"type": "string"
},
"price": {
"type": "long"
},
"productId": {
"type": "string"
},
"sku": {
"type": "string"
},
"specs": {
"type": "string"
},
"specsName": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"type_product_lm": {
"properties": {
"createdAt": {
"type": "long"
},
"datatype": {
"type": "string"
},
"id": {
"type": "string"
},
"imgUrl": {
"type": "string"
},
"name": {
"type": "string"
},
"pid": {
"type": "string"
},
"productPageDetail": {
"type": "string"
},
"sort": {
"type": "long"
}
}
},
"type_product_lowPrice": {
"type": "long"
},
"type_product_mainPicture": {
"type": "string"
},
"type_product_pictures": {
"type": "string"
},
"type_product_producerId": {
"type": "string"
},
"type_product_productChannel": {
"type": "string"
},
"type_product_productGrade": {
"type": "string"
},
"type_product_productPoints": {
"type": "long"
},
"type_product_productType": {
"type": "string"
},
"type_product_promotions": {
"properties": {
"boughtCount": {
"type": "long"
},
"createAt": {
"type": "long"
},
"createrDatatype": {
"type": "string"
},
"createrDepartmentId": {
"type": "string"
},
"createrDepartmentLayer": {
"type": "long"
},
"createrDepartmentLeftvalue": {
"type": "long"
},
"createrDepartmentRightvalue": {
"type": "long"
},
"createrId": {
"type": "string"
},
"failureAt": {
"type": "long"
},
"giftCount": {
"type": "long"
},
"name": {
"type": "string"
},
"promotionGive": {
"properties": {
"price": {
"type": "string"
},
"productName": {
"type": "string"
},
"productPic": {
"type": "string"
},
"productSpec": {
"type": "string"
},
"promotionGiveId": {
"type": "string"
},
"promotionId": {
"type": "string"
},
"promotionProductId": {
"type": "string"
}
}
},
"promotionId": {
"type": "string"
},
"promotionType": {
"type": "string"
},
"remark": {
"type": "string"
},
"startAt": {
"type": "long"
},
"status": {
"type": "string"
}
}
},
"type_product_propertis": {
"type": "string"
},
"type_product_rebatePrice": {
"type": "long"
},
"type_product_salesVolume": {
"type": "long"
},
"type_product_sign": {
"type": "string"
},
"type_product_specs": {
"type": "string"
},
"type_product_status": {
"type": "string"
},
"type_product_subTitle": {
"type": "string"
},
"type_product_title": {
"type": "string",
"index":"not_analyzed"
},
"type_product_totalVolume": {
"type": "long"
},
"type_product_universalPrice": {
"type": "long"
},
"type_product_upAt": {
"type": "long"
},
"type_product_visitorVolume": {
"type": "long"
}
}
}
}}
查詢條件:
{"query":{"bool":{"must":[{"wildcard":{ "type_product_title":"*8度*"}}]}}}
網(wǎng)站欄目:elasticsearchs中文查詢返回為空問題
網(wǎng)頁地址:http://jinyejixie.com/article24/ijcdce.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供響應(yīng)式網(wǎng)站、網(wǎng)站維護、微信公眾號、企業(yè)建站、定制開發(fā)、網(wǎng)站設(shè)計
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)