elasticsearch-6.2.4 环境搭建

下载

https://www.elastic.co/downloads/elasticsearch

 

解压

 

启动

PS:管理员身份

控制台结果

浏览器访问

将elasticsearch设置为windows系统服务

       elasticsearch的bin目录下有一个elasticsearch-service.bat ,进入bin目录下执行:  elasticsearch-service.bat install,即可在服务中找到:

Sense

       当ElasticSearch的实例并运行,您可以使用localhost:9200,基于JSON的REST API与ElasticSearch进行通信。使用任何HTTP客户端来通信。在ElasticSearch自己的文档中,所有示例都使用curl。但是,当使用API时也可使用图形客户端(如Fiddler或RESTClient),这样操作起更方便直观一些。

       更方便的是Chrome插件Sense。 Sense提供了一个专门用于使用ElasticSearch的REST API的简单用户界面。 它还具有许多方便的功能,例如:ElasticSearch的查询语法的自动完成功能以及curl格式的复制和粘贴请求,从而可以方便地在文档中运行示例。

下载

http://www.cnplugins.com/advsearch.php?q=sense

配置

       Chrome  -> 设置  -> 高级  -> 隐私设置和安全性

添加插件

说明

Quick intro to the UI

Senseis split into two panes: an editor pane (white) and a response pane (black).Use the editor to type requests and submit them to Elasticsearch. The resultswill be displayed in the response pane on the right side.

Senseunderstands requests in a compact format, similar to cURL:

Whiletyping a request, Sense will make suggestions which you can than accept byhitting Enter/Tab. These suggestions are made based on the requeststructure as well as your indices and types.

A few quick tips, while I have yourattention:

       Submit requests to ES using the greentriangle button.

       Use the wrench menu for other usefulthings.

       You can paste requests in cURL format andthey will be translated to the Sense syntax.

       You can resize the editor and outputpanes by dragging the separator between them.

       Study the keyboard shortcuts under theHelp button. Good stuff in there!

问题

       Elasticsearch6.0使用Sense发送请求Content-Type报错:https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests

       解决办法:https://blog.csdn.net/xieshanwu/article/details/78667881

测试

       安装完成后,在Chrome的右上角找到Sense的图标。第一次单击它运行Sense时,会为您准备一个非常简单的示例请求。如下图所示:

       上述请求将执行最简单的搜索查询,匹配服务器上所有索引中的所有文档。针对ElasticSearch运行,Sense提供的最简单的查询,在响应结果的数据中并没有查询到任何数据,因为没有任何索引。

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值