elasticSearch script api

Package org.elasticsearch.script
FunctionScoreQuery, Aggregation, UpdateAction, etc).| Interface | Description |
|---|---|
| ExecutableScript |
An executable script, can't be used concurrently.
|
| ExplainableSearchScript |
To be implemented by
SearchScript which can provided an Explanation of the score This is currently not used inside elasticsearch but it is used, see for example here: https://github.com/elastic/elasticsearch/issues/8561 |
| LeafSearchScript |
A per-segment
SearchScript. |
| NativeScriptFactory | Deprecated
Create a
ScriptEngineService instead of using native scripts |
| ScriptContext |
Context of an operation that uses scripts as part of its execution.
|
| ScriptEngineService | |
| SearchScript |
A search script.
|
| Class | Description |
|---|---|
| AbstractDoubleSearchScript |
A simpler base class instead of
AbstractSearchScript for computations that return a double number. |
| AbstractExecutableScript | |
| AbstractLongSearchScript |
A simpler base class instead of
AbstractSearchScript for computations that return a long number. |
| AbstractSearchScript |
A base class for any script type that is used during the search process (custom score, aggs, and so on).
|
| ClassPermission |
Checked by scripting engines to allow loading a java class.
|
| CompiledScript |
CompiledScript holds all the parameters necessary to execute a previously compiled script.
|
| NativeScriptEngineService |
A native script engine service.
|
| ScoreAccessor |
A float encapsulation that dynamically accesses the score of a document.
|
| Script |
Script represents used-defined input that can be used to compile and execute a script from the ScriptService based on the ScriptType. |
| ScriptContext.Plugin |
Custom operation exposed via plugin, which makes use of scripts as part of its execution
|
| ScriptContextRegistry |
Registry for operations that use scripts as part of their execution.
|
| ScriptEngineRegistry | |
| ScriptMetaData |
ScriptMetaData is used to store user-defined scripts as part of the ClusterState. |
| ScriptMetaData.Builder |
A builder used to modify the currently stored scripts data held within the
ClusterState. |
| ScriptMetrics | |
| ScriptModes |
Holds the boolean indicating the enabled mode for each of the different scripting languages available, each script source and each scripted operation.
|
| ScriptModule |
Manages building
ScriptService and ScriptSettings from a list of plugins. |
| ScriptService | |
| ScriptSettings | |
| ScriptStats | |
| StoredScriptSource |
StoredScriptSource represents user-defined parameters for a script saved in the ClusterState. |
| Enum | Description |
|---|---|
| ScriptContext.Standard |
Standard operations that make use of scripts as part of their execution.
|
| ScriptType |
ScriptType represents the way a script is stored and retrieved from the
ScriptService. |
ScriptEnginService compile?..... 不推荐。
XXXPlugin extends Plugin implements ScriptPlugin
实现方法: List<NativeScriptFactory> getNativeScripts()
实现XXXScriptFactory implements NativeScriptFactory
NativeScriptFactory 创建ExcutableScript实例 ( ExecutableScript newScript() )
主要实现ExecutableScript newScript()
实现 XXXScript extends AbstractDoubleSearchScript
ExecutableScript( run())
实现 runAsDouble()方法

ExecutableScript是接口。
AbsractSearchScritp 实现了ExecutableScript接口。
AbsractSearchScritp 有个lookup!
NativeScriptEngineService
search()会调用 script.setLookup()
依赖
ScriptService 的search(SearchLookup lookup)
依赖

parseSource(DefaultSearchContext context
SearchScript searchScript = scriptService.search(context.lookup()
依赖 createAndPutContext
依赖executeDfsPhase
elasticSearch script api的更多相关文章
- ElasticSearch Document API
删除索引库 可以看到id为1的索引库不见了 这里要修改下配置文件 slave1,slave2也做同样的操作,在这里就不多赘述了. 这个时候记得要重启elasticseach才能生效,怎么重启这里就不多 ...
- 第08章 ElasticSearch Java API
本章内容 使用客户端对象(client object)连接到本地或远程ElasticSearch集群. 逐条或批量索引文档. 更新文档内容. 使用各种ElasticSearch支持的查询方式. 处理E ...
- Elasticsearch 常用API
1. Elasticsearch 常用API 1.1.数据输入与输出 1.1.1.Elasticsearch 文档 #在 Elasticsearch 中,术语 文档 有着特定的含义.它是指最顶 ...
- elasticsearch REST api
elasticsearch REST api========================================命令模式:<REST Verb> /<Index>/ ...
- elasticsearch REST API方式批量插入数据
elasticsearch REST API方式批量插入数据 1:ES的服务地址 http://127.0.0.1:9600/_bulk 2:请求的数据体,注意数据的最后一行记得加换行 { &quo ...
- [搜索]ElasticSearch Java Api(一) -添加数据创建索引
转载:http://blog.csdn.net/napoay/article/details/51707023 ElasticSearch JAVA API官网文档:https://www.elast ...
- Elasticsearch java api 基本搜索部分详解
文档是结合几个博客整理出来的,内容大部分为转载内容.在使用过程中,对一些疑问点进行了整理与解析. Elasticsearch java api 基本搜索部分详解 ElasticSearch 常用的查询 ...
- Elasticsearch java api 常用查询方法QueryBuilder构造举例
转载:http://m.blog.csdn.net/u012546526/article/details/74184769 Elasticsearch java api 常用查询方法QueryBuil ...
- ElasticSearch的API介绍
ElasticSearch的API介绍 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 一.ES是基于Restful风格 1>ES是基于Restful风格 Elasticsea ...
随机推荐
- JavaWeb 基于Session的用户登陆注销实现
通过Session来存储用户的部分登陆信息来验证用户是否在线,这应该时最容易实现的一种Web端方案,本文以SSM(Spring.SpringMVC.myBatis)框架为载体,来具体实现这套登陆系统. ...
- 《Effective STL》学习笔记
http://www.cnblogs.com/arthurliu/archive/2011/08/07/2108386.html 作者:咆哮的马甲 出处:http://www.cnblogs.com/ ...
- microtime()
PHP函数microtime()返回当前 Unix 时间戳和微秒数.
- C++ 点
2017/12/23 scoped_ptr类型的指针,只能在一个namespace中使用 1) 怎么查看元素在set中是否存在 1) istringstream类用于执行C++风格的串流的输入操作. ...
- 大数据Hadoop-1
大数据Hadoop学习之搭建hadoop平台(2.2) 关于大数据,一看就懂,一懂就懵. 一.概述 本文介绍如何搭建hadoop分布式集群环境,前面文章已经介绍了如何搭建hadoop单机环境和伪分 ...
- [CQOI2012]局部极小值
题目链接 注意到\(4\times 7\)的矩阵的局部极小值最多只有8个,可以状压. 设\(f[i][sta]\)表示从小到大填数,当前填到\(i\),极小值的填充状态为\(sta\)的方案数. 考虑 ...
- [NOIP2017]列队 线段树
---题面--- 题解: 之前写的splay,,,然而一直没调出来,我感觉是某个细节想错了,,然而已经重构4次代码不想再写splay了.于是今天尝试了线段树的解法. 首先因为每次出列之后的变化都是将当 ...
- TYVJ 1035 / codevs 2171 棋盘覆盖
Problem Description 给定一个n * m的棋盘,已知某些各自禁止放置,求最多往棋盘上放多少长度为2宽度为1的骨牌(骨牌不重叠) Input 第一行为n,m(表示有m个删除的格子)第二 ...
- 解决IE下页面空白或者报错:[vuex] vuex requires a Promise polyfill in this browser
[vuex] vuex requires a Promise polyfill in this browser 上述错误的原因是不支持 Promise 方法,导致页面出现空白无法加载. 解决方法如下: ...
- 获得edittext的图片大小
1.在布局文件中编写控件,有2张图片 <EditText android:id="@+id/edit" android:background="@drawable/ ...