- 浏览: 146071 次
文章分类
最新评论
-
x_looking:
Client client = new TransportCl ...
ELASTICSEARCH常见问题 -
辣de冷wmyes:
ElasticSearch视频教程百度网盘地址:http:// ...
一、Elasticsearch安装使用教程
前言
elasticsearch 将各种功能、配置、服务都以API的形式暴露,这也是elasticsearch区别于其他搜索引擎框架的一个特征。这几天在看一个elasticsearch的培训资料,将资料中提到的URL单独罗列了出来。
索引相关
URL 说明
/index/_search 不解释
/_aliases 获取或操作索引的别名
/index/
/index/type/ 创建或操作类型
/index/_mapping 创建或操作mapping
/index/_settings 创建或操作设置(number_of_shards是不可更改的)
/index/_open 打开被关闭的索引
/index/_close 关闭索引
/index/_refresh 刷新索引(使新加内容对搜索可见)
/index/_flush
刷新索引
将变动提交到lucene索引文件中
并清空elasticsearch的transaction log,
与refresh的区别需要继续研究
/index/_optimize 优化segement,个人认为主要是对segement进行合并
/index/_status 获得索引的状态信息
/index/_segments 获得索引的segments的状态信息
/index/_explain 不执行实际搜索,而返回解释信息
/index/_analyze 不执行实际搜索,根据输入的参数进行文本分析
/index/type/id 操作指定文档,不解释
/index/type/id/_create 创建一个文档,如果该文件已经存在,则返回失败
/index/type/id/_update 更新一个文件,如果改文件不存在,则返回失败
Distributed
URL 说明
/_cluster/nodes 获得集群中的节点列表和信息
/_cluster/health 获得集群信息
/_cluster/state 获得集群里的所有信息(集群信息、节点信息、mapping信息等)
Nodes
URL 说明
/_nodes/process 我主要看file descriptor 这个信息
/_nodes/process/stats 统计信息(内存、CPU能)
/_nodes/jvm 获得各节点的虚拟机统计和配置信息
/_nodes/jvm/stats 更详细的虚拟机信息
/_nodes/http 获得各个节点的http信息(如ip地址)
/_nodes/http/stats 获得各个节点处理http请求的统计情况
/_nodes/thread_pool
获得各种类型的线程池
(elasticsearch分别对不同的操作提供不同的线程池)的配置信息
/_nodes/thread_pool/stats 获得各种类型的线程池的统计信息
以上这些操作和可以通过如
/_nodes/${nodeId}/jvm/stats
/_nodes/${nodeip}/jvm/stats
/_nodes/${nodeattribute}/jvm/stats
的形式针对指定节点的操作。
其他
/_template/templateName 创建索引配置模板,比如默认的mapping
/_percolator/indexName/percolatorName 创建percolator(这个词怎么翻译成中文,是个问题)
/index/type/_percolate/ 对payload中指定的文档进行”反
结束语
将url列出,个人觉得,对把握整个elasticsearch的概念和系统结构很有帮助,下一步需要针对重点内容(_search必然是重点内容)逐个研究。
elasticsearch 将各种功能、配置、服务都以API的形式暴露,这也是elasticsearch区别于其他搜索引擎框架的一个特征。这几天在看一个elasticsearch的培训资料,将资料中提到的URL单独罗列了出来。
索引相关
URL 说明
/index/_search 不解释
/_aliases 获取或操作索引的别名
/index/
/index/type/ 创建或操作类型
/index/_mapping 创建或操作mapping
/index/_settings 创建或操作设置(number_of_shards是不可更改的)
/index/_open 打开被关闭的索引
/index/_close 关闭索引
/index/_refresh 刷新索引(使新加内容对搜索可见)
/index/_flush
刷新索引
将变动提交到lucene索引文件中
并清空elasticsearch的transaction log,
与refresh的区别需要继续研究
/index/_optimize 优化segement,个人认为主要是对segement进行合并
/index/_status 获得索引的状态信息
/index/_segments 获得索引的segments的状态信息
/index/_explain 不执行实际搜索,而返回解释信息
/index/_analyze 不执行实际搜索,根据输入的参数进行文本分析
/index/type/id 操作指定文档,不解释
/index/type/id/_create 创建一个文档,如果该文件已经存在,则返回失败
/index/type/id/_update 更新一个文件,如果改文件不存在,则返回失败
Distributed
URL 说明
/_cluster/nodes 获得集群中的节点列表和信息
/_cluster/health 获得集群信息
/_cluster/state 获得集群里的所有信息(集群信息、节点信息、mapping信息等)
Nodes
URL 说明
/_nodes/process 我主要看file descriptor 这个信息
/_nodes/process/stats 统计信息(内存、CPU能)
/_nodes/jvm 获得各节点的虚拟机统计和配置信息
/_nodes/jvm/stats 更详细的虚拟机信息
/_nodes/http 获得各个节点的http信息(如ip地址)
/_nodes/http/stats 获得各个节点处理http请求的统计情况
/_nodes/thread_pool
获得各种类型的线程池
(elasticsearch分别对不同的操作提供不同的线程池)的配置信息
/_nodes/thread_pool/stats 获得各种类型的线程池的统计信息
以上这些操作和可以通过如
/_nodes/${nodeId}/jvm/stats
/_nodes/${nodeip}/jvm/stats
/_nodes/${nodeattribute}/jvm/stats
的形式针对指定节点的操作。
其他
/_template/templateName 创建索引配置模板,比如默认的mapping
/_percolator/indexName/percolatorName 创建percolator(这个词怎么翻译成中文,是个问题)
/index/type/_percolate/ 对payload中指定的文档进行”反
结束语
将url列出,个人觉得,对把握整个elasticsearch的概念和系统结构很有帮助,下一步需要针对重点内容(_search必然是重点内容)逐个研究。
发表评论
-
使用 Scripted Metric Aggregation 遇到的问题
2016-02-19 14:12 2404使用Scripted Metric Aggregation进行 ... -
ElasticSearch性能优化策略
2016-02-17 19:42 3489ElasticSearch性能优化主要分为4个方面的优化。 一 ... -
Elasticsearch 数据建模 - 处理关联关系
2016-02-17 14:40 1022数据建模(Modeling Your Data ... -
数据类型转换错误
2016-02-15 18:28 1556异常: Invalid shift value (64) in ... -
elasticsearch 排序异常,关键字冲突
2016-02-03 12:35 5807org.elasticsearch.action.search ... -
ElasticSearch不同类型下同名字段排序错误
2016-02-03 11:18 1897虽然之前知道elasticsearch不同类型下同名字段要慎用 ... -
ElasticSearch immense term错误
2016-02-02 19:07 2570在使用ElasticSearch的过程中遇到了一个immens ... -
ELASTICSEARCH常见问题
2015-09-22 15:39 31591. ELASTICSEARCH建索引过程中崩溃问题追查 by ... -
routing实例1
2015-09-21 18:51 0package com.eg.part1; import j ... -
routing实例
2015-09-21 18:49 0创建索引: PUT /useraudit_v1 创建索引别名: ... -
elasticsearch 精确,模糊查询实例
2015-09-19 23:55 62518实例 http://www.bubuko.com/infode ... -
elasticsearch java调用实例
2015-09-19 23:55 3499http://outofmemory.cn/code-snip ... -
[维护]Elasticsearch零停机时间更新索引配置或迁移索引
2015-09-18 10:16 751另外一篇文章:http://blog.csdn.net/dm_ ... -
elasticsearch 的mapping定义
2015-09-18 10:16 1165elasticsearch 的mapping 例子一: 订单 ... -
ElasticSearch基础杂烩-配置-索引-优化
2015-09-19 23:56 601http://blog.csdn.net/huwei2003/ ... -
Elasticsearch安装中文分词插件ik
2015-09-18 10:15 1988安装步骤: 1、到github ... -
ElasticSearch集群搭建
2015-09-19 23:56 541http://www.linuxidc.com/Linux/2 ... -
elasticsearch 配置
2015-09-18 10:16 665elasticsearch.conf 主要是设置一些java运 ... -
elasticsearch中文分词集成
2015-09-17 09:35 565elasticsearch官方只提供smartcn这个中文分词 ... -
elasticsearch的Mapping定义
2015-09-17 09:35 1369Mapping,就是对索引库中 ...
相关推荐
检索URL的URL并将URL存储在Elasticsearch中。 概述 WSU Web爬网程序在Elasticsearch中维护URL的记录。 通过爬网附加到URLHTML锚元素中的所有href属性来收集这些URL。 一系列优先级和时间表确定了URL的存储顺序: ...
<elasticsearch.version>5.6.0</elasticsearch.version> <spring-version>5.0.0.RC3 <fastjson-version>1.2.7 <junit-version>4.12 <slf4j-version>1.7.5 <ik.version>5.5.1 <spring-test-version>4.1.6....
打开带有.es文件扩展名的现有文件或打开一个新的文本文件 ( ctrl+n ) 并通过按ctrl+k,m并选择es将语言模式更改为Elasticsearch (es) 。 在 Visual Studio Code 编辑器的 es 语言模式下启用了 Elasticsearch 查询和...
弹性搜索分析网址捕获一个只保留 url 的 elasticsearch 令牌过滤器这个插件现在对 ES 1.4.x 没用了只需创建一个自定义分析器,使用 uax_url_email 标记器和一个 keep_types tokenFilter 只保留“ < URL> ”类型。...
这将基于集群URL,索引名称,类型和可选的自定义查询从Elasticsearch提取一组数据,并创建数据的Tableau提取。 连接器将在 Elasticsearch 中查询指定类型的映射,以报告 Tableau 可以预期看到的字段和数据类型。 此...
返回: ES新的ElasticSearch客户端 参数 类型 描述 选择 实例化要传递给新客户的选项 例子 const ES = require ( 'aws-es-client' ) ( { url : process . env . ES_CLUSTER_URL , id : process . en
到达您的Elasticsearch服务器的URL。 注意:这必须是完整的主机名或IP。 期望添加搜索域的主机名将不起作用。 ESS_ABORT_IF_EMPTY (默认值:true) 如果服务器上没有索引,这将中止快照过程。 如果您只是引导...
Elasticsearch Word Delimiter 2 过滤... 对于旧版本的 ElasticSearch,您仍然可以使用更长的: bin/plugin -url http://oss.sonatype.org/content/repositories/releases/com/yakaz/elasticsearch/plugins/elasticsea
Elasticsearch厨师食谱 在打开问题或提交请求之前,请查看和。寻找Elasticsearch 5.x或6.x? 请此食谱。 请考虑将您的食谱固定在“ > 3.0”以支持Elasticsearch 6及更早版本,或“ 适用于Elasticsearch 6及更高版本...
Elasticsearch该存储库包含用于Elasticsearch的Ruby集成:用于连接到Elasticsearch集群的客户端,用于Elasticsearch的REST API的Ruby API,用于X-Pack API的Ruby API,各种扩展的Elasticsearch。该存储库包含用于...
近期准备对ElasticHD进行重构,大家可以把自己的需求提成〜。...支持特权认证的ElasticSearch服务器,URL格式: 安装 用于支持的操作系统的。 基本用法 Linux和MacOS使用ElasticHD Step1: Download the
Elasticsearch同义词远程概述Elasticsearch同义词远程插件提供file_remote_synonym过滤器版本版本弹性搜索掌握1.7.1 1.0.0 1.7.1安装$ $ES_HOME/bin/plugin --install elasticsearch-synonym-remote --url file:\/\/...
Kibana 在根/ ,Elasticsearch 在/elasticsearch elasticsearch 上提供服务。 还配置了健康检查 url 并且位于/health 。 要创建您的 Elasticsearch 应用程序,请运行: rhc app-create ...
new log : true# if you specify Elasticsearch host# client = Elasticsearch::Client.new url: 'http://localhost:9200', log: trueclient . transport . reload_connections!client . cluster . healthclient . ...
安装 $ yarn $ yarn serve:dev 用yarn安装后,运行yarn serve:dev启动本地服务器。 浏览器(Chrome,Opera, 苹果浏览器, 火狐浏览器)并连接到...Things Scene通过浏览器调用ElasticSearch REST API,因此Elasti
使用泊坞窗容器elasticsearch.yml可以从文件系统,URL或类路径来加载。 该扩展利用了所做的工作,非常感谢他和的提交者 ,谢谢,谢谢! 相依性 要将akka-elasticsearch扩展包含到您的项目中,请在build.sbt中添加...
URL :Elasticsearch基本网址 REPO :快照存储库名称 LIMIT :要保留的快照数量 要求 Elasticsearch 1.4、2、5也许 卷曲 jq JSON Parser命令 用法 克隆脚本您的首选目录。 在这种情况下,我们假设克隆了/etc/bacula...
elasticsearch多线程未授权批量检测工具,直接单url检测,也支持批量url检测,环境为python3,使用请在授权情况下使用,一切责任与作者无关。
IK Analyzer是一个开源的,基于java语言开发...持:英文字母(IP地址、Email、URL)、数字(日期,常用中文数量词,罗马数字,科学计数法),中文词汇 (姓名、地名处理)等分词处理。 优化的词典存储,更小的内存占用
1 git clone URL 2 cd URL 3 install.sh ##用法## 如何使用此 Python 模块的简单示例: from my_elasticsearch import Celastic_searchmy_es = Celastic_search ()print my_es.is_up ()my_es.start ()doc = {