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 ...
随机推荐
- highcharts图表插件初探
转载请注明出处:http://www.cnblogs.com/liubei/p/highchartsOption.html HighCharts简介 Highcharts 是一个用纯JavaScrip ...
- 【SSH】——使用ModelDriven的利与弊
在以往的web开发中,如果要在表单显示什么内容,我们就需要在Action中提前定义好表单显示的所有属性,以及一系列的get和set方法.如果实体类的属性非常多,那么Action中也要定义相同的属性.在 ...
- 2017 Multi-University Training Contest - Team 3 RXD and dividing(树)
题解: 其实贪心地算就可以了 一个最优的分配就是每条边权贡献的值为min(k, sz[x]),sz[x]是指子树的大小 然后最后加起来就是答案. #include <iostream> # ...
- AGC016C +/- Rectangle(构造)
题目大意:给定H,W,h,w四个数,求是否满足矩阵的全部数之和和正数,h行w列之和为负数 如果h和w恰好是H,W的约数,则肯定不存在 否则肯定存在 只需要把h,w内每个元素填的足够大,然后小矩形的最后 ...
- 【题解】[国家集训队]Crash的数字表格 / JZPTAB
求解\(\sum_{i = 1}^{n}\sum_{j = 1}^{m}lcm\left ( i,j \right )\). 有\(lcm\left ( i,j \right )=\frac{ij}{ ...
- VS查看DLL接口
应用程序Microsoft Visual Studio 2010的Visual Studio Tools文件夹中打开Visual Studio Command Prompt (2010)命令窗口 du ...
- function(data)
转:http://blog.csdn.net/lixld/article/details/12206367 之前用了$.post()已经很久了,可是从来没有好好研究过这里的data对象,今天好好总结下 ...
- php-instanceof运算符
1.关于 instanceof 的一些基本概念 1).instanceof 用于确定一个PHP变量是否属于某一类class的实例: <?php class MyClass { } class N ...
- [06] 盒模型 + auto 居中 + 垂直合并
1.盒模型 盒子模型有两种,分别是 ie 盒子模型和标准 w3c 盒子模型. 标准(W3C)模型中:CSS中的宽(width) = 内容 (content)的宽 CSS中的宽(width) = 内容( ...
- 关于javascript中的this 一段小实例深有体会啊
先声明鄙人正在努力的把脚抬进门来,说的都是比较粗浅的知识,但都是我实践中得出的体会,很深刻. 正在自学中挣扎的DOG. 先看段代码: function highlightRows() { if(!d ...