2.2.0的启动和6.几 启动路径、端口一样,但是进入Head的路径不一样

http://localhost:9200/

进入Head的方式2.2 的在

http://localhost:9200/_plugin/head/

进入6.几的方式

先要自己下载,把Head拷贝进去目录。然后修改配置文件,

然后,在head源代码目录下启动nodejs:

grunt server

效果如图:

最后在9100端口进入Head

http://localhost:9100

分词查找

http://localhost:9200/_analyze?analyzer=ik_max_word&&text=中华人民共和国

查看Mapping的方法

http://127.0.0.1:9200/jlindex/_mapping?pretty

通过Head的复合查询设置Mapping(文本禁用分词)

找到Head的复合查询部分

在查询第一行填入地址和要创建索引的名称,例如索引的名称是jlindex

另外,查询下左边栏位置空,右边栏位因为是新增索引和设置Mapping,所以设置为POST

把要提交的Mapping粘贴进去,点击提交按钮即可完成新建索引的Mapping。

{
"mappings": {
"saledatatype": {
"properties": {
"FYear": {
"type": "string",
"index": "not_analyzed"
},
"FQuarter": {
"type": "string",
"index": "not_analyzed"
},
"FMonth": {
"type": "string",
"index": "not_analyzed"
},
"FDate": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"City": {
"type": "string",
"index": "not_analyzed"
},
"CustomerName": {
"type": "string",
"index": "not_analyzed"
},
"FAmount": {
"type": "double"
},
"FItemClassID": {
"type": "long"
},
"FItemID": {
"type": "long"
},
"FItemID1": {
"type": "long"
},
"FItemID2": {
"type": "long"
},
"FItemID3": {
"type": "long"
},
"FItemID4": {
"type": "long"
},
"FItemID5": {
"type": "long"
},
"FItemID6": {
"type": "long"
},
"FName": {
"type": "string",
"index": "not_analyzed"
},
"FName1": {
"type": "string",
"index": "not_analyzed" },
"FName2": {
"type": "string",
"index": "not_analyzed" },
"FName3": {
"type": "string",
"index": "not_analyzed" },
"FName4": {
"type": "string",
"index": "not_analyzed"
},
"FName5": {
"type": "string",
"index": "not_analyzed" },
"FName6": {
"type": "string",
"index": "not_analyzed"
},
"FNumber": {
"type": "string",
"index": "not_analyzed" },
"FNumber1": {
"type": "string",
"index": "not_analyzed" },
"FNumber2": {
"type": "string",
"index": "not_analyzed" },
"FNumber3": {
"type": "string",
"index": "not_analyzed" },
"FNumber4": {
"type": "string",
"index": "not_analyzed" },
"FNumber5": {
"type": "string",
"index": "not_analyzed" },
"FNumber6": {
"type": "string",
"index": "not_analyzed" },
"FQTy": {
"type": "double"
},
"ItemName": {
"type": "string",
"index": "not_analyzed"
},
"ItemNumber": {
"type": "string",
"index": "not_analyzed" },
"Province": {
"type": "string",
"index": "not_analyzed" }
}
}
}
}

设置IK分词

{
"mappings": {
"saledatatype": {
"properties": {
"City": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word"
},
"CustomerName": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word"
},
"FAmount": {
"type": "double"
},
"FDate": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"FItemClassID": {
"type": "long"
},
"FItemID": {
"type": "long"
},
"FItemID1": {
"type": "long"
},
"FItemID2": {
"type": "long"
},
"FItemID3": {
"type": "long"
},
"FItemID4": {
"type": "long"
},
"FItemID5": {
"type": "long"
},
"FItemID6": {
"type": "long"
},
"FName": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FName1": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FName2": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FName3": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FName4": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FName5": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FName6": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FNumber": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FNumber1": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FNumber2": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FNumber3": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FNumber4": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FNumber5": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FNumber6": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"FQTy": {
"type": "double"
},
"ItemName": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"ItemNumber": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" },
"Province": {
"type": "string",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word" }
}
}
}
}

ElasticSearch 常用设置的更多相关文章

  1. Elasticsearch 常用API

    1.   Elasticsearch 常用API 1.1.数据输入与输出 1.1.1.Elasticsearch 文档   #在 Elasticsearch 中,术语 文档 有着特定的含义.它是指最顶 ...

  2. Elasticsearch常用DSL关键字

    Elasticsearch常用DSL关键字 query: 用于包含查询使用到的语法 match_all: 最简单的查询,获取索引所有数据,类似搜索 *.如:"query":{&qu ...

  3. pycharm快捷键及一些常用设置

    pycharm快捷键及一些常用设置,有需要的朋友可以参考下. Alt+Enter 自动添加包 Ctrl+t SVN更新 Ctrl+k SVN提交 Ctrl + / 注释(取消注释)选择的行 Ctrl+ ...

  4. PLSQLDeveloper 常用设置

    PLSQL Developer常用设置及快捷键   1.登录后默认自动选中My Objects (已验证可用)   默认情况下,PLSQL Developer登录后,Brower里会选择All obj ...

  5. 百度编辑器UEditor常用设置函数大全

    在线文档对UEditor说明不够全面,收集了一些常用的方法和基本设置,以供参考.1.创建编辑器UE.getEditor('editor', { initialFrameWidth:"100% ...

  6. IntelliJ IDEA 常用设置讲解

    说明 IntelliJ IDEA 有很多人性化的设置我们必须单独拿出来讲解,也因为这些人性化的设置让我们这些 IntelliJ IDEA 死忠粉更加死心塌地使用它和分享它. 常用设置 IntelliJ ...

  7. pycharm快捷键、常用设置、包管理

    pycharm快捷键.常用设置.包管理 在PyCharm安装目录 /opt/pycharm-3.4.1/help目录下可以找到ReferenceCard.pdf快捷键英文版说明 or 打开pychar ...

  8. 《Pro Express.js》学习笔记——Express框架常用设置项

    Express 设置 系统设置 1.       无须再定义,大部分有默认值,可不设置 2.       常用设置 env view cache view engine views trust pro ...

  9. Source Insight 常用设置和快捷键大全

    Source Insight 常用设置和快捷键大全 退出程序 : Alt+F4 重画屏幕 : Ctrl+Alt+Space 完成语法 : Ctrl+E 复制一行 : Ctrl+K 恰好复制该位置右边的 ...

随机推荐

  1. ROS tf 编程指南

    ROS (Robot Operating System, 机器人操作系统)是最知名的机器人操作系统,广泛应用于无人驾驶和机器人,tf(transforms,坐标系转换)是ROS下的一个常用的工具库.r ...

  2. Java泛型中的通配符

    Java泛型中的通配符可以直接定义泛型类型的参数.而不用把该函数定义成泛型函数. public class GenericsTest { public static void main(String[ ...

  3. 洛谷 P2986 [USACO10MAR]伟大的奶牛聚集Great Cow Gat…(树规)

    题目描述 Bessie is planning the annual Great Cow Gathering for cows all across the country and, of cours ...

  4. python 类变量 在多线程下的共享与释放问题-乾颐堂

    最近被多线程给坑了下,没意识到类变量在多线程下是共享的,还有一个就是没意识到 内存释放问题,导致越累越大 1.python 类变量 在多线程情况 下的 是共享的 2.python 类变量 在多线程情况 ...

  5. CentOS7安装redis,并设置开机自启动

    卸载redis 停止并删除所有已的rendis目录即可. rm -rf /home/wls/soft/redis-4.0.2 rm -rf /etc/redis* rm -rf /var/log/re ...

  6. CEPH集群RBD快照创建、恢复、删除、克隆(转)

    Ceph支持一个非常好的特性,以COW(写时复制)的方式从RBD快照创建克隆,在Ceph中被称为快照分层.分层特性允许用户创建多个CEPH RBD克隆实例.这些特性应用于OpenStack等云平台中 ...

  7. 编写高质量代码改善C#程序的157个建议——建议142:总是提供有意义的命名

    建议142:总是提供有意义的命名 除非有特殊原型,否则永远不要为自己的代码提供无意义的命名. 害怕需要过长的命名才能提供足够的意义?不要怕,其实我们更介意的是在代码的时候出现一个iTemp. int ...

  8. SqlServer:CTE函数处理递归(WITH语法)

    原文地址:http://www.cnblogs.com/xbf321/archive/2009/04/30/1446833.html 我们在做分类处理的时候,总会遇到递归的处理,比如说地区就是一个例子 ...

  9. UWP平台Taglib编译(1)

    此文已由作者郑博授权网易云社区发布. 欢迎访问网易云社区,了解更多网易技术产品运营经验 最近开始开发UWP平台的App,项目需要用到Taglib进行音视频文件的标签信息读写,Google并没有现成的B ...

  10. 921. Minimum Add to Make Parentheses Valid

    Given a string S of '(' and ')' parentheses, we add the minimum number of parentheses ( '(' or ')', ...