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 ...
随机推荐
- 【tips】【词频统计】中可能用到的资源,以C++为例
前言 我不知道C#什么情况,不过C++里面,什么参数都不传时,argc=1,argv里面是当前程序名.当你传入dir时,argc=2,当你传入-e dir时,argc=3. 这个文章十分适合有一点C语 ...
- node + npm 命令
npm install npm@latest -g //更新npm npm -v //运行查看版本号 地址:https://docs.npmjs.com/getting-started/insta ...
- 微信公众号开发java框架:wx4j(MaterialUtils篇)
wx4j-MaterialUtils的使用 函数说明:上传永久视频素材 参数:文件路径.视频描述(通过setter填充内容即可) 返回值:微信服务器返回的json字符串 public static S ...
- [android]不解锁刷机
本人因为误操作进入andriod recovery模式,显示failed to boot 2,致手机无法恢复出厂值, 当时那叫一个郁闷.上论坛搜寻无数,唉让刷底包的无数(在此不解释),万恶的刷底包. ...
- mysql ibd 文件还原数据
-- 这里要还原的表名为 test_table -- 1建库,并选中库,库名随意 -- 2查看InnoDB 引擎独立表空间是否开启 SHOW VARIABLES LIKE '%per_table%' ...
- DataGridView加载gif图片
当我们想加载图片时,一般情况下都会使用picturebox控件,这个控件可以加载各种格式的图片,当然也包括gif图片.但是有时,我们也希望一些数据展示控件也可以加载图片,比如说DataGridView ...
- WCF 透明代理
现在我们通过类似的原理创建一个用于模拟WCF服务端和客户端工作原理的模拟程序.[源代码从这里下载] 目录 一.基本的组件和执行流程 二.创建自定义HttpHandler实现对服务调用请求的处理 三.定 ...
- [剑指Offer] 20.包含min函数的栈
题目描述 定义栈的数据结构,请在该类型中实现一个能够得到栈最小元素的min函数. [思路1]两个栈Stack和Min,Stack为当前栈中元素,Min为与Stack中元素一一对应的当前栈最小值. cl ...
- 用WebService实现两个整数运算
最近,项目开发中需要用到Web Service.自己在网上搜集资料.自己做了一个小例子,用来加深自己对Web Service理解. 概念:Web Service主要是为了使原来各孤立的站点之间的信息能 ...
- hdu 3500 Fling (dfs)
Fling Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submi ...