elasticsearch 创建索引
来源:互联网 发布:mui案例源码下载 编辑:程序博客网 时间:2024/05/22 02:23
$url = "127.0.0.1:9200/tyep/";//es存储路径 $json=array();$json["mappings"]["log"]["properties"]["title"]["type"]="string";$json["mappings"]["log"]["properties"]["title"]["index"]="not_analyzed";$json["mappings"]["log"]["properties"]["content"]["type"]="string";$json["mappings"]["log"]["properties"]["content"]["index"]="not_analyzed";//默认analyzed$json["mappings"]["log"]["properties"]["subject"]["type"]="string"; $json["mappings"]["log"]["properties"]["subject"]["index"]="not_analyzed";$json["mappings"]["log"]["properties"]["url"]["type"]="string";$json["mappings"]["log"]["properties"]["url"]["index"]="not_analyzed"; echo json_encode($json); $r =$common->callInterfaceCommon($url, "PUT", json_encode($json));//批量存入数据
0 0
- Elasticsearch创建索引
- elasticsearch api 创建索引
- elasticsearch创建索引
- elasticsearch 创建索引
- Elasticsearch JavaAPI 创建索引
- ElasticSearch-创建索引CreateIndex
- Elasticsearch创建索引
- elasticsearch创建索引报错
- (四)ElasticSearch索引创建
- elasticsearch基础知识以及创建索引
- 分布式搜索Elasticsearch——创建索引
- elasticsearch 简介和创建索引初步
- ElasticSearch源码解析(三):索引创建
- 分布式搜索Elasticsearch——创建索引
- elasticsearch-jdbc 使用数据库数据创建索引
- Elasticsearch创建索引和映射结构详解
- ElasticSearch Java Api(一) -创建索引
- perl put 请求创建elasticsearch 索引
- 剑指Offer面试题16 & Leetcode206
- Java笔试题解(4)
- Spring中AOP切面的定义
- platform总线驱动
- 利用mybatis-generator自动生成代码
- elasticsearch 创建索引
- Leetcode学习(27)—— Add Strings
- http协议301、302的原理和实现
- redis 清空缓存命令
- ionic2 @ionic-native/camera应用
- Mac OS X下开发软件的安装与配置(持续更新ing)
- Latex除法余数
- python监控文件,并且发送告警邮件
- 198. House Robber