原文链接:http://blog.csdn.net/geloin/article/details/8476614
IndicesAdminClient提供了针对索引的action的operation的管理进行操作的接口,它有以下方法:
1) exists(IndicesExistsRequest request)、exists(IndicesExistsRequest request, ActionListener<IndicesExistsResponse> listener)、prepareExists(String... indices),索引是否存在;2) typesExists(TypesExistsRequest request)、typesExists(TypesExistsRequest request, ActionListener<TypesExistsResponse> listener)、prepareTypesExists(String... index),type是否存在;
3) stats(IndicesStatsRequest request)、stats(IndicesStatsRequest request, ActionListener<IndicesStats> listener)、prepareStats(String... indices),索引统计;
4) status(IndicesStatusRequest request)、status(IndicesStatusRequest request, ActionListener<IndicesStatusResponse> listener)、prepareStatus(String... indices),索引状态;
5) segments(IndicesSegmentsRequest request)、segments(IndicesSegmentsRequest request, ActionListener<IndicesSegmentResponse> listener)、prepareSegments(String... indices),索引的段;
6) create(CreateIndexRequest request)、create(CreateIndexRequest request, ActionListener<CreateIndexResponse> listener)、prepareCreate(String index),基于显示的设置创建索引;
7) delete(DeleteIndexRequest request)、delete(DeleteIndexRequest request, ActionListener<DeleteIndexResponse> listener)、prepareDelete(String... indices),基于索引名称删除索引;
8) close(CloseIndexRequest request)、close(CloseIndexRequest request, ActionListener<CloseIndexResponse> listener)、prepareClose(String index),基于索引名称关闭索引;
9) open(OpenIndexRequest request)、open(OpenIndexRequest request, ActionListener<OpenIndexResponse> listener)、prepareOpen(String index),基于索引名称打开索引;
10) refresh(RefreshRequest request)、refresh(RefreshRequest request, ActionListener<RefreshResponse> listener)、prepareRefresh(String... indices),刷新索引;
11) flush(FlushRequest request)、flush(FlushRequest request, ActionListener<FlushResponse> listener)、prepareFlush(String... indices),刷新索引(从节点中释放内存);
12) optimize(OptimizeRequest request)、optimize(OptimizeRequest request, ActionListener<OptimizeResponse> listener)、prepareOptimize(String... indices),优化索引到片段中;
13) putMapping(PutMappingRequest request)、putMapping(PutMappingRequest request, ActionListener<PutMappingResponse> listener)、preparePutMapping(String... indices),定义映射关系,在这里可定义解析器,如paoding;
14) deleteMapping(DeleteMappingRequest request)、deleteMapping(DeleteMappingRequest request, ActionListener<DeleteMappingResponse> listener)、prepareDeleteMapping(String... indices),删除索引的映射;
16) aliases(IndicesAliasesRequest request)、aliases(IndicesAliasesRequest request, ActionListener<IndicesAliasesResponse> listener)、prepareAliases(),允许为索引添加或删除别名;
18) updateSettings(UpdateSettingsRequest request)、updateSettings(UpdateSettingsRequest request, ActionListener<UpdateSettingsResponse> listener)、prepareUpdateSettings(String... indices),为索引更新设置;
20) putTemplate(PutIndexTemplateRequest request)、putTemplate(PutIndexTemplateRequest request, ActionListener<PutIndexTemplateResponse> listener)、preparePutTemplate(String name),设置索引模板;
22) validateQuery(ValidateQueryRequest request)、validateQuery(ValidateQueryRequest request, ActionListener<ValidateQueryResponse> listener)、prepareValidateQuery(String... indices),验证查询的正确性;
24) deleteWarmer(DeleteWarmerRequest request)、deleteWarmer(DeleteWarmerRequest request, ActionListener<DeleteWarmerResponse> listener)、prepareDeleteWarmer(),删除候补索引。
25) GetIndexTemplatesRequestBuilder prepareGetTemplates(String... name); //获取索引模板,当name为*号时则获取所有
相关推荐
分布式搜索elasticsearch几个概念解析 3 分布式搜索elasticsearch单机与服务器环境搭建 4 分布式搜索elasticsearch中文分词集成 5 分布式搜索elasticsearch配置文件详解 8 分布式搜索elasticsearch安装步骤详解 12 ...
分布式搜索elasticsearch java API 之(三)--- 索引数据 6 分布式搜索elasticsearch java API 之(四)--- 删除索引数据 7 分布式搜索elasticsearch java API 之(五)--- 搜索 8 分布式搜索elasticsearch java API...
分布式搜索引擎ElasticSearch思维导图,ES思维带图。分布式搜索引擎ElasticSearch思维导图,ES思维带图。分布式搜索引擎ElasticSearch思维导图,ES思维带图。分布式搜索引擎ElasticSearch思维导图,ES思维带图。...
比较好用的ElasticSearch客户端工具,可以监控ES集群信息。
分享一套完整版视频课程——分布式搜索引擎Elasticsearch开发实战基础篇 (ElasticSearch、ELK、搜索引擎、Lucene),本教程旨在带领大家进入搜索引擎领域,从无到有,深入浅出的讲解了什么是搜索引擎,搜索引擎的...
牛客Java高级工程师 第6章 Elasticsearch,分布式搜索引擎\牛客Java高级工程师-第六章 Elasticsearch,分布式搜索引擎 .pdf 牛客Java高级工程师 第6章 Elasticsearch,分布式搜索引擎\第六章素材和源码\community-...
Elasticsearch分布式大数据搜索
集成Redis缓存、消息队列(RabbitMq、RocketMQ)、分布式搜索ElasticSearch 个人花大量时间整理出的实战资料,内容丰富,文档也很详细。无论做毕业设计还是用于学习技能,或工作中当做参考资料,都能发挥重要作用 亲们...
资源名称:相关性搜索 利用Solr与Elasticsearch创建智能应用内容简介:《相关性搜索:利用Solr与Elasticsearch创建智能应用》揭开了相关性搜索的神秘面纱,告诉大家如何将 Elasticsearch与 Solr这样的搜索引擎作为可...
Elasticsearch是一个开源的分布式搜索和分析引擎,构建在Apache Lucene之上。它提供了一套强大的API和工具,可以实现分布式全文搜索、结构化和非结构化数据分析、日志存储和实时数据可视化等功能。 以下是一些...
elasticsearch5.5.1客户端所需jar包,可用于普通java工程使用elasticsearch客户端,解决必须用maven工程问题
elasticsearch-gui, 一个用于elasticsearch的angularJS客户端作为插件 介绍欢迎使用elasticsearch的Gui插件。 使用这个插件你可以浏览你的elasticsearch索引。 这个插件提供了一些不同的方法来开始探索。 有一种方法...
elasticsearch v2.2.0客户端
maven项目编写的一个elasticsearch rest方式进行增删改查的api工具类含测试代码,rest方式仅需10多个jar即可实现,比elasticsearch client可以少引用数十个jar,有兴趣的可以看看
连接阿里elasticsearch连接客户端代码,elasticsearch5.3.3
Elasticsearch 是一个分布式的免费开源搜索和分析引擎,适用于包括文本、数字、地理空间、结构化和非结构化数据等在内的所有类型的数据。Elasticsearch 在 Apache Lucene 的基础上开发而成,由 Elasticsearch N.V....
Elasticsearch是一个实时分布式搜索和分析引擎。Elasticsearch鼓励你浏览并利用你的数据,而不是让它烂在数据库里。
第一步:启动一个elasticsearch服务,bin目录下的elasticsearch.bat 第二步:建索引,执行MusicReviewIndex中的单元测试方法index() 第三步:检索测试,执行MusicReviewSearch中的单元测试方法search() 本实例基于: ...
ElasticSearch分布式搜索引擎是一个分布式的RESTful风格的搜索和数据分析引擎,能够解决越来越多的用例。作为Elastic Stack的核心,它集中存储您的数据,帮助您发现意料之中以及意料之外的情况。 Elasticsearch是一...