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 ...
随机推荐
- Uva 294 Divisors(唯一分解定理)
题意:求区间内正约数最大的数. 原理:唯一分解定义(又称算术基本定理),定义如下: 任何一个大于1的自然数 ,都可以唯一分解成有限个质数的乘积 ,这里 均为质数,其诸指数 是正整数.这样的分解称 ...
- [GitHub] - Unity Timer
https://github.com/akbiggs/UnityTimer#unity-timer Run actions after a delay in Unity3D. This library ...
- coredump分析
首先通过命令 gdb freeswitch core.60954进入gdb. 这里freeswitch 是产生coredump的可执行应用,core.60954是应用产生的coredump文件. 然后 ...
- HTML5表单提交与PHP环境搭建
PHP服务器使用xampp集成套件 路径 D:\xampp\htdocs\MyServer\index.php 访问 http://localhost/MyServer/index.php 能够正常显 ...
- bzoj1726 第二短路
一道严格次短路题,WA了一下午回家才发现bellman_ford中的vis [ o ] = false 写成了 vis [ S ] = false.被自己脑残了一脸.... #include<c ...
- P1641 [SCOI2010]生成字符串
P1641 [SCOI2010]生成字符串 题目描述 lxhgww最近接到了一个生成字符串的任务,任务需要他把n个1和m个0组成字符串,但是任务还要求在组成的字符串中,在任意的前k个字符中,1的个数不 ...
- 【CF MEMSQL 3.0 C. Pie Rules】
time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standa ...
- PAT团体程序设计大赛---(模拟)
L1-1 古风排版(20 分) 中国的古人写文字,是从右向左竖向排版的.本题就请你编写程序,把一段文字按古风排版. 输入格式: 输入在第一行给出一个正整数N(<100),是每一列的字符数.第二行 ...
- bzoj 2525 [Poi2011]Dynamite 二分+树形dp
[Poi2011]Dynamite Time Limit: 30 Sec Memory Limit: 128 MBSubmit: 270 Solved: 138[Submit][Status][D ...
- 常用原生客户端js
var el = document.createElement('pre'); // 创建 <pre></pre>元素 el.id = 'sss'; // 添加id <p ...