网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

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

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


分享标题:elasticsearchs中文查询返回为空问题-创新互联
转载来源:http://bjjierui.cn/article/cegepo.html

其他资讯