千家信息网

elasticsearchs中文查询返回为空问题

发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,在elasticsearch中,根据商品名称查询时,没有数据。折腾了一天 ,最后将商品名称字段不分词进行索引。{"mappings": {"type_product":{ "properties":
千家信息网最后更新 2026年11月02日elasticsearchs中文查询返回为空问题

在elasticsearch中,根据商品名称查询时,没有数据。

折腾了一天 ,最后将商品名称字段不分词进行索引。

{

"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度*"}}]}}}

查询 名称 商品 字段 数据 条件 索引 问题 中文 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 互联网科技有限公司 湖北九亚互联网络科技有限公司 上海卓越科技互联网 互联网佳科技有限公司 厦门中拓互联网络科技有限公司 盈实互联网科技 金诺互联网科技 猪兼强互联网科技 互联网科技公司有哪些 科技与互联网的利与弊 以后互联网后是啥科技 湖南一路畅行互联网科技 深圳市优智互联网科技有限公司 链环科技传统企业怎么转型互联网 华夏恒生互联网科技013171 乌鲁木齐新华智原互联网科技学校 伍佰万互联网科技怎么赚钱 广州百诚互联网科技有限公司官网 易租星互联网科技有限公司 数字科技和互联网金融哪个好 互联网科技公司做什么 汉立互联网科技有限公司联系电话 西藏七维空间互联网科技有限公司 华夏互联网科技业 阿大互联网科技有限公司 中国科技创新与世界互联网大会 中和天地互联网科技有限公司 宇信科技在杭州互联网排第几 科技互联网专业工作会议发言稿 上海旺乐尼互联网科技有限公司
0