ElasticSearch 常用设置
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 常用设置的更多相关文章
- Elasticsearch 常用API
1. Elasticsearch 常用API 1.1.数据输入与输出 1.1.1.Elasticsearch 文档 #在 Elasticsearch 中,术语 文档 有着特定的含义.它是指最顶 ...
- Elasticsearch常用DSL关键字
Elasticsearch常用DSL关键字 query: 用于包含查询使用到的语法 match_all: 最简单的查询,获取索引所有数据,类似搜索 *.如:"query":{&qu ...
- pycharm快捷键及一些常用设置
pycharm快捷键及一些常用设置,有需要的朋友可以参考下. Alt+Enter 自动添加包 Ctrl+t SVN更新 Ctrl+k SVN提交 Ctrl + / 注释(取消注释)选择的行 Ctrl+ ...
- PLSQLDeveloper 常用设置
PLSQL Developer常用设置及快捷键 1.登录后默认自动选中My Objects (已验证可用) 默认情况下,PLSQL Developer登录后,Brower里会选择All obj ...
- 百度编辑器UEditor常用设置函数大全
在线文档对UEditor说明不够全面,收集了一些常用的方法和基本设置,以供参考.1.创建编辑器UE.getEditor('editor', { initialFrameWidth:"100% ...
- IntelliJ IDEA 常用设置讲解
说明 IntelliJ IDEA 有很多人性化的设置我们必须单独拿出来讲解,也因为这些人性化的设置让我们这些 IntelliJ IDEA 死忠粉更加死心塌地使用它和分享它. 常用设置 IntelliJ ...
- pycharm快捷键、常用设置、包管理
pycharm快捷键.常用设置.包管理 在PyCharm安装目录 /opt/pycharm-3.4.1/help目录下可以找到ReferenceCard.pdf快捷键英文版说明 or 打开pychar ...
- 《Pro Express.js》学习笔记——Express框架常用设置项
Express 设置 系统设置 1. 无须再定义,大部分有默认值,可不设置 2. 常用设置 env view cache view engine views trust pro ...
- Source Insight 常用设置和快捷键大全
Source Insight 常用设置和快捷键大全 退出程序 : Alt+F4 重画屏幕 : Ctrl+Alt+Space 完成语法 : Ctrl+E 复制一行 : Ctrl+K 恰好复制该位置右边的 ...
随机推荐
- cs4.1 编译与安装
cs4.1编译报 https://issues.apache.org/jira/browse/CLOUDSTACK-2913 cs4.1安装报
- 电商项目面试题 及mysql面试题 太难没啥用
需要按照功能点把系统拆分,拆分成独立的功能.单独为某一个节点添加服务器.需要系统之间配合才能完成整个业务逻辑.叫做分布式.集群:同一个工程部署到多台服务器上.优点:1.把模块拆分,使用接口通信,降低模 ...
- Linux 基金会宣布联合 edX 提供免费 Linux 课程
edX 是一个由麻省理工学院和哈佛大学创建的大规模开放在线课堂平台.它免费给大众提供大学教育水平的在线课堂.” edX 学习平台” 就像 开源软件似的发展,它使得其它院校机构也可以提供其高级学习的 ...
- sqlserver镜像相关资料
本文出处:http://blog.csdn.net/dba_huangzj/article/details/35995083 镜像(Mirroring) SQL Server镜像简介 计划搭建SQL ...
- JMeter下载及安装配置完整版
特别需要注意的时,jdk版本和jmeter版本匹配问题. Jdk1.8对应apache-jmeter-3.3 Jmeter下载及安装配置 本文是在win7环境下安装使用jmeter,jmeter可以运 ...
- 设计模式22:Strategy 策略模式(行为型模式)
Strategy 策略模式(行为型模式) 动机(Motivation) 在软件构建过程中,某些对象使用的算法可能多种多样,经常改变,如果将这些算法都编码到对象中,将会使对象变得异常复杂:而且有时候支持 ...
- 设计模式13:Template Method 模板方法模式(行为型模式)
Template Method 模板方法模式(行为型模式) 变与不变 变化——是软件永恒的主题,如何管理变化带来的复杂性?设计模式的艺术性和复杂度就在于如何分析,并发现体系中的变化点和稳定点,并使用特 ...
- MongoDB整理笔记のjava MongoDB分页优化
最近项目在做网站用户数据新访客统计,数据存储在MongoDB中,统计的数据其实也并不是很大,1000W上下,但是公司只配给我4G内存的电脑,让我程序跑起来气喘吁吁...很是疲惫不堪. 最常见的问题莫过 ...
- vmware获取主机、数据中心等对象ManagedObjectReference
在vmware的api中提供以下列表中的对象,称作ManagedObjectReference,包括虚拟机信息.主机.数据中心等等一些信息,我们可以通过vcenter的web api得到. 下面我们来 ...
- 楊輝三角C#版
class Program { static void Main(string[] args) { Console.WriteLine("please input a number:&quo ...