ElasticSearch测试数据
curl命令数据 curl -XPUT http://127.0.0.1:9200/us/user/1 -d "{\"email\":\"john@smith.com\",\"name\":\"John Smith\",\"username\":\"@john\"}" curl -XPUT http://127.0.0.1:9200/gb/user/2 -d "{\"email\" : \"mary@jones.com\",\"name\" : \"Mary Jones\",\"username\" : \"@mary\"}" curl -XPUT http://127.0.0.1:9200/gb/tweet/3 -d "{\"date\" : \"2014-09-13\",\"name\" : \"Mary Jones\",\"tweet\" : \"Elasticsearch means full text search has never been so easy\",\"user_id\" : 2}" curl -XPUT http://127.0.0.1:9200/us/tweet/4 -d "{\"date\" : \"2014-09-14\",\"name\" : \"John Smith\",\"tweet\" : \"@mary it is not just text, it does everything\",\"user_id\" : 1}" curl -XPUT http://127.0.0.1:9200/gb/tweet/5 -d "{\"date\" : \"2014-09-15\",\"name\" : \"Mary Jones\",\"tweet\" : \"However did I manage before Elasticsearch?\",\"user_id\" : 2}" curl -XPUT http://127.0.0.1:9200/us/tweet/6 -d "{\"date\" : \"2014-09-16\",\"name\" : \"John Smith\",\"tweet\" : \"The Elasticsearch API is really easy to use\",\"user_id\" : 1}" curl -XPUT http://127.0.0.1:9200/gb/tweet/7 -d "{\"date\" : \"2014-09-17\", \"name\" : \"Mary Jones\",\"tweet\" : \"The Query DSL is really powerful and flexible\",\"user_id\" : 2}" curl -XPUT http://127.0.0.1:9200/us/tweet/8 -d "{\"date\" : \"2014-09-18\",\"name\" : \"John Smith\",\"user_id\" : 1}" curl -XPUT http://127.0.0.1:9200/gb/tweet/9 -d "{\"date\" : \"2014-09-19\",\"name\" : \"Mary Jones\",\"tweet\" : \"Geo-location aggregations are really cool\",\"user_id\" : 2}" curl -XPUT http://127.0.0.1:9200/us/tweet/10 -d "{\"date\" : \"2014-09-20\",\"name\" : \"John Smith\",\"tweet\" : \"Elasticsearch surely is one of the hottest new NoSQL products\",\"user_id\" : 1}" curl -XPUT http://127.0.0.1:9200/gb/tweet/11 -d "{\"date\" : \"2014-09-21\",\"name\" : \"Mary Jones\",\"tweet\" : \"Elasticsearch is built for the cloud, easy to scale\",\"user_id\" : 2}" curl -XPUT http://127.0.0.1:9200/us/tweet/12 -d "{\"date\" : \"2014-09-22\",\"name\" : \"John Smith\",\"tweet\" : \"Elasticsearch and I have left the honeymoon stage, and I still love her.\",\"user_id\" : 1}" curl -XPUT http://127.0.0.1:9200/gb/tweet/13 -d "{\"date\" : \"2014-09-23\",\"name\" : \"Mary Jones\",\"tweet\" : \"So yes, I am an Elasticsearch fanboy\",\"user_id\" : 2}" curl -XPUT http://127.0.0.1:9200/us/tweet/14 -d "{\"date\" : \"2014-09-24\",\"name\" : \"John Smith\",\"tweet\" : \"How many more cheesy tweets do I have to write?\",\"user_id\" : 1}" 批量操作数据 POST /_bulk
{ "create": { "_index": "us", "_type": "user", "_id": "" }}
{ "email" : "john@smith.com", "name" : "John Smith", "username" : "@john" }
{ "create": { "_index": "gb", "_type": "user", "_id": "" }}
{ "email" : "mary@jones.com", "name" : "Mary Jones", "username" : "@mary" }
{ "create": { "_index": "gb", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-13", "name" : "Mary Jones", "tweet" : "Elasticsearch means full text search has never been so easy", "user_id" : }
{ "create": { "_index": "us", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-14", "name" : "John Smith", "tweet" : "@mary it is not just text, it does everything", "user_id" : }
{ "create": { "_index": "gb", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-15", "name" : "Mary Jones", "tweet" : "However did I manage before Elasticsearch?", "user_id" : }
{ "create": { "_index": "us", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-16", "name" : "John Smith", "tweet" : "The Elasticsearch API is really easy to use", "user_id" : }
{ "create": { "_index": "gb", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-17", "name" : "Mary Jones", "tweet" : "The Query DSL is really powerful and flexible", "user_id" : }
{ "create": { "_index": "us", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-18", "name" : "John Smith", "user_id" : }
{ "create": { "_index": "gb", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-19", "name" : "Mary Jones", "tweet" : "Geo-location aggregations are really cool", "user_id" : }
{ "create": { "_index": "us", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-20", "name" : "John Smith", "tweet" : "Elasticsearch surely is one of the hottest new NoSQL products", "user_id" : }
{ "create": { "_index": "gb", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-21", "name" : "Mary Jones", "tweet" : "Elasticsearch is built for the cloud, easy to scale", "user_id" : }
{ "create": { "_index": "us", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-22", "name" : "John Smith", "tweet" : "Elasticsearch and I have left the honeymoon stage, and I still love her.", "user_id" : }
{ "create": { "_index": "gb", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-23", "name" : "Mary Jones", "tweet" : "So yes, I am an Elasticsearch fanboy", "user_id" : }
{ "create": { "_index": "us", "_type": "tweet", "_id": "" }}
{ "date" : "2014-09-24", "name" : "John Smith", "tweet" : "How many more cheesy tweets do I have to write?", "user_id" : }
ElasticSearch测试数据的更多相关文章
- Elasticsearch.Net使用(一)【入门篇】
http://blog.csdn.net/wulex/article/details/52138564 加数据 //在调用下面的index方法的时候,如果没有指定使用哪个index,ElasticSe ...
- Elasticsearch第五篇:PlainElastic.Net 操作 Elasticsearch
再次强调,我安装的Elasticsearch 版本是 7.8.0 ,C# 操作 Elasticsearch 的驱动有 NEST.Elasticsearch.net .PlainElastic.Net ...
- php提供一维数组模糊查询
2019年9月30日14:36:15 提供一维数组模糊查询,只支持utf-8 内部处理是Unicode 编码特殊编码格式的可能会出错 if (!function_exists('arrayFuzzyQ ...
- 如何保存JMeter的性能测试数据到ElasticSearch上,并且使用Kibana进行可视化分析(1)
前言 Jmeter是一款性能测试,压力测试的开源工具,被大量的测试人员拿来测试产品的性能,负载等等. Jmeter除了强大的预置的各种插件,各种可视化图表工具以外,也有些固有的缺陷,例如: 我们往往只 ...
- ElasticSearch第四步-查询详解
ElasticSearch系列学习 ElasticSearch第一步-环境配置 ElasticSearch第二步-CRUD之Sense ElasticSearch第三步-中文分词 ElasticSea ...
- Elasticsearch 教程--搜索
搜索 – 基本工具 到目前为止,我们已经学习了Elasticsearch的分布式NOSQL文档存储,我们可以直接把JSON文档扔到Elasticsearch中,然后直接通过ID来进行调取.但是Elas ...
- ElasticSearch大数据分布式弹性搜索引擎使用
阅读目录: 背景 安装 查找.下载rpm包 .执行rpm包安装 配置elasticsearch专属账户和组 设置elasticsearch文件所有者 切换到elasticsearch专属账户测试能否成 ...
- elasticsearch之python备份
一:elasticsearch原理 Elasticsearch是一个基于Apache Lucene(TM)的开源搜索引擎.无论在开源还是专有领域,Lucene可以被认为是迄今为止最先进.性能最好的.功 ...
- 为Elasticsearch添加中文分词,对比分词器效果
http://keenwon.com/1404.html Elasticsearch中,内置了很多分词器(analyzers),例如standard (标准分词器).english(英文分词)和chi ...
随机推荐
- 洛谷 P3302 [SDOI2013]森林 解题报告
P3302 [SDOI2013]森林 题目描述 小\(Z\)有一片森林,含有\(N\)个节点,每个节点上都有一个非负整数作为权值.初始的时候,森林中有\(M\)条边. 小Z希望执行\(T\)个操作,操 ...
- 用CSS模拟魔兽世界技能冷却的效果
效果演示 上面的效果看起来还不错吧.在网页里,除了用Flash,我们还是有不少方法可以实现它. 显然这种效果不复杂,一张背景图片,加上前面带有透明度的多边形图层,在脚本控制下就可以转起来了.但问题 ...
- php 字符串重要函数
1.chop() 从字符串右端移除字符 chop(string,charlist) $str="hello world~"; echo chop($str,"ld~&qu ...
- redis的五种基本数据类型
redis基本数据类型 redis一共分为5中基本数据类型:String,Hash,List,Set,ZSet 第一种String String类型是包含很多种类型的特殊类型,并且是二进制安全的.比如 ...
- xmlSerializer属性的使用
学习了XmlAttribute,XmlElement属性的定义和使用. Order类定义 using System; using System.Collections.Generic; using S ...
- VLC for iOS 2.3.0
http://www.cocoachina.com/bbs/read.php?tid=231898 VLC for iOS 2.3.0 本帖属于CocoaChina会员发表,转帖请写明来源 ...
- Linux应用层的定时器Timer使用详解【转】
转自:http://blog.csdn.net/wwwtovvv/article/details/8601528 版权声明:本文为博主原创文章,未经博主允许不得转载. linux下定时器的使用 -- ...
- VIM使用技巧1
.命令是vim中很重要的一个命令,用法如下: 加入有一个文件vimtest.txt,内容如下: 1 Line one 2 Line two ...
- (4) python--seaborn
seaborn封装了matplotlib的一些风格,简单的介绍一下
- 在PE中,新增节,添加代码
在PE中,新增节,添加代码 一.先判断节表后是否有空闲位置,添加节表信息,必须多出两个节表位置,最后以零结尾. 二.新增节后,需要修改以下信息 1.添加一个新节,可以复制一份,最好是拥有可执行属性的节 ...