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 ...
随机推荐
- STL 六大部件
stl具有上面6大部件 容器是存储数据的,原理主要是模板,容器只是负责存储数据,并不关心内存的存储情况,所以出现了分配器,分配器主要是负责为容器分配内存的,对于数据的操作被封装为一个个函数,也就是算法 ...
- Linux的常用目录学习笔记
首先,先查看一下Linuxi的一级目录结构: ls: /:表示根目录,文件系统的入口,最高一级目录. bin和sbin:命令保存目录,bin是普通用户能,sbin是root用户用的:/bin存放着系统 ...
- Java作业09-异常
6. 为如下代码加上异常处理 byte[] content = null; FileInputStream fis = new FileInputStream("testfis.txt&qu ...
- lintcode-59-最接近的三数之和
59-最接近的三数之和 给一个包含 n 个整数的数组 S, 找到和与给定整数 target 最接近的三元组,返回这三个数的和. 注意事项 只需要返回三元组之和,无需返回三元组本身 样例 例如 S = ...
- OpenCV尺寸调整
#include<cv.h> #include<highgui.h> int main(int argc, char** argv) { IplImage* img = cvL ...
- Bjarne Stroustrup 语录1
1. 请谈谈C++书. 没有,也不可能有一本书对于所有人来说都是最好的.不过对于那些真正的程序员来说,如果他喜欢从“经典风格”的书中间学习一些新的概念和技术,我推荐我的The C++ Program ...
- 用户代理UA
简介: 用户代理英文全称为User Agent,简称UA,现在被广泛用来标识浏览器客户端信息. 发展状况: User Agent在互联网早期就已经存在,那时互联网是完全基于文本的,用户直接浏览器互联网 ...
- JAVA高并发处理------多线程
线程安全概念:当多个线程访问某一个类(对象或方法)时,这个对象始终都能表现出正确的行为,那么这个类(对象或方法)就是线程安全的. 分析:当多个线程访问myThread的run方法时,以排队的方式进行处 ...
- BZOJ4690 Never Wait for Weights(并查集)
带权并查集按秩合并即可维护. #include<iostream> #include<cstdio> #include<cmath> #include<cst ...
- Phaser的timer用法
1. 延迟timer,相当于setTimeout game.time.events.add(Phaser.Timer.SECOND*5,this.delayOver,this); 2. 循环timer ...