摘要:本篇文章探讨了大数据技术之Java的新项目学习笔记(78),希望阅读本篇文章以后大家有所收获,帮助大家对相关内容的理解更加深入。
本篇文章探讨了大数据技术之Java的新项目学习笔记(78),希望阅读本篇文章以后大家有所收获,帮助大家对相关内容的理解更加深入。
"
3.3 搭建ES环境 3.3.1 ES安装
开发环境使用ES单机环境,启动ES服务端。
注意:旧的ES环境,可以删除elasticsearch-6.2.1\data\nodes目录以完全清除ES环境。 安装elasticsearch-head并启动。
3.3.2 创建索引库
创建索引库
创建xc_course索引库,一个分片,0个副本。 3.3.3 创建映射
Post //localhost:9200/xc_course/doc/_mapping
[mw_shl_code=applescript,true] if(newCoursePub==null){ //创建课程索引信息失败 ExceptionCast.cast(CourseCode.COURSE_PUBLISH_CREATE_INDEX_ERROR); } .... } { ""properties"" : { ""description"" : { ""analyzer"" : ""ik_max_word"", ""search_analyzer"": ""ik_smart"", ""type"" : ""text"" }, ""grade"" : { ""type"" : ""keyword"" }, ""id"" : { ""type"" : ""keyword"" }, ""mt"" : { ""type"" : ""keyword"" }, ""name"" : { [/mw_shl_code] [mw_shl_code=applescript,true] ""analyzer"" : ""ik_max_word"", ""search_analyzer"": ""ik_smart"", ""type"" : ""text"" }, ""users"" : { ""index"" : false, ""type"" : ""text"" }, ""charge"" : { ""type"" : ""keyword"" }, ""valid"" : { ""type"" : ""keyword"" }, ""pic"" : { ""index"" : false, ""type"" : ""keyword"" }, ""qq"" : { ""index"" : false, ""type"" : ""keyword"" }, ""price"" : { ""type"" : ""float"" }, ""price_old"" : { ""type"" : ""float"" }, ""st"" : { ""type"" : ""keyword"" }, ""status"" : { ""type"" : ""keyword"" }, ""studymodel"" : { ""type"" : ""keyword"" }, ""teachmode"" : { ""type"" : ""keyword"" }, ""teachplan"" : { ""analyzer"" : ""ik_max_word"", ""search_analyzer"": ""ik_smart"", ""type"" : ""text"" }, ""expires"" : { ""type"" : ""date"", ""format"": ""yyyy‐MM‐dd HH:mm:ss"" }, ""pub_time"" : { ""type"" : ""date"",""format"": ""yyyy‐MM‐dd HH:mm:ss"" [/mw_shl_code] [mw_shl_code=applescript,true] }, ""start_time"" : { ""type"" : ""date"", ""format"": ""yyyy‐MM‐dd HH:mm:ss"" }, ""end_time"" : { ""type"" : ""date"", ""format"": ""yyyy‐MM‐dd HH:mm:ss"" } } } [/mw_shl_code]
"
本文由职坐标整理发布,学习更多的相关知识,请关注职坐标IT知识库!
您输入的评论内容中包含违禁敏感词
我知道了
请输入正确的手机号码
请输入正确的验证码
您今天的短信下发次数太多了,明天再试试吧!
我们会在第一时间安排职业规划师联系您!
您也可以联系我们的职业规划师咨询:
版权所有 职坐标-一站式IT培训就业服务领导者 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
沪公网安备 31011502005948号