首页 \ 问答 \ 使用“head”插件弹性搜索_bulk请求(elastic search _bulk request with “head” plugin)

使用“head”插件弹性搜索_bulk请求(elastic search _bulk request with “head” plugin)

我有一个弹性搜索集群,正确安装了“elasticsearch-head”插件。

我想使用_bulk API一次插入多个值,但_bulk请求体的特定格式似乎会给插件带来麻烦。

我使用“任何查询”面板通过以下设置指定我的请求:
查询: /_bulk
身体:

{ "create" : { "_index" : "eco", "_type" : "usage" } }
{ "index": 1, name" : "my_value" }

验证json时我得到以下内容,并且不会执行请求:

JSON.parse: unexpected non-whitespace character after JSON data at line 2 column 1 of the JSON data

有谁知道elasticsearch-head插件是否可以处理_bulk API? 或者我的请求有问题吗?


I've an elastic search cluster with "elasticsearch-head" plugin installed properly.

I want to use the _bulk API to insert several values at once but the specific format of _bulk request body seems to be causing troubles to the plugin.

I use the "Any query" panel to specify my request with the following setup:
query: /_bulk
body:

{ "create" : { "_index" : "eco", "_type" : "usage" } }
{ "index": 1, name" : "my_value" }

I get the following when validating the json and the request won't be executed:

JSON.parse: unexpected non-whitespace character after JSON data at line 2 column 1 of the JSON data

Does anyone knows if elasticsearch-head plugin can handle the _bulk API ? Or is there something wrong with my request ?


原文:https://stackoverflow.com/questions/27755048
更新时间:2022-03-03 17:03

最满意答案

您需要创建自己的颜色选择器皮肤类并添加到此皮肤关闭按钮。 打开mx.skins.spark.ColorPickerSkin类并将其代码复制到您自己的MyColorPickerSkin类。 在MyColorPickerSkin中,您可以添加一个将关闭组件的按钮。

 <mx:ColorPicker id="cp"
        skin="MyColorPickerSkin"/>

You need create your own color picker skin class and add to this skin close button. Open mx.skins.spark.ColorPickerSkin class and copy its code to your own MyColorPickerSkin class. In MyColorPickerSkin you can add a button which will be closes the component.

 <mx:ColorPicker id="cp"
        skin="MyColorPickerSkin"/>

相关问答

更多
  • 编辑 在你的问题之后,我迅速掀起了一些东西,表明按钮可以是任何形状。 如果你想要地板是可选择的,那么你可能想要一个ToggleButton ,而不是一个Button所以我重新研究了我的例子,结果就是你所描述的 为什么不使用Flex 4.0 Skinning功能? 您可以使用自己的外观获得按钮组件的行为(和状态):
  • 好的找到了答案。 这会重置关闭按钮外观。 close-button-skin: ClassReference("null"); close-button-disabled-skin: Embed(source="Assets.swf", symbol="CloseButtonDisabled"); close-button-down-skin: Embed(source="Assets.swf", symbol="CloseButtonDown"); close-button-over-skin: Em ...
  • 这可以通过使用setStyle方法将upSkin,downSkin和overSkin设置为null来完成。 linkButton.setStyle('upSkin', null); linkButton.setStyle('overSkin', null); linkButton.setStyle('downSkin', null); 以上操作从Link按钮禁用selectionColor,rollOverColor。 This can be done by setting upSkin, down ...
  • 您需要创建自己的颜色选择器皮肤类并添加到此皮肤关闭按钮。 打开mx.skins.spark.ColorPickerSkin类并将其代码复制到您自己的MyColorPickerSkin类。 在MyColorPickerSkin中,您可以添加一个将关闭组件的按钮。 You need create your own color picker skin class and add to this ...
  • 我有类似的要求,并使用SO链接颜色选择器中的以下代码示例实现, 并在android中使用 第1步 - 创建一个ColorPickerDialog类 public class ColorPickerDialog extends Dialog { public interface OnColorChangedListener { void colorChanged(int color); } private OnColorChangedListener mListener; private int ...
  • 在Panel类的createChildren()方法中,宽度和高度似乎设置为16像素: closeButton.explicitWidth = closeButton.explicitHeight = 16; 您可以尝试将explicitWidth和explicitHeight设置为窗口中所需的值。 不要忘记将closeButton范围扩展到mx_internal,并导入并使用该命名空间。 import mx.core.mx_internal; use namespace mx_internal; / ...
  • 尝试 Button { fillAlphas: 1, 1, 1, 1; fillColors: #66ffff, #66ffff, #66ffff, #66ffff; } 即使我尝试使用外部.css文件 您可以使用Flex Style Explorer创建它,并通过以下语句导入它: try Button { fillAlphas: 1, 1, 1, 1; fillColors: #66ffff, # ...
  • 我通过@yield脚本使用了脚本然后它工作了。 I have used the scripts through @yield scripts then it worked.
  • 这两个文件为颜色选择器设置了“选择颜色” wp-includes\js\colorpicker.js wp-includes\script-loader.php 它们是核心文件,您所做的任何更改都将被未来的更新覆盖。 您应该能够为添加元框的初始化操作编写过滤器 These two files set "Select Color" for the color picker wp-includes\js\colorpicker.js wp-includes\script-loader.php They ar ...
  • 现在偶然发现它(在寻找完全不同的东西时)。 它是org.eclipse.jface.preference.ColorFieldEditor 。 Stumbled upon it myself now (while looking for something entirely different). It is the org.eclipse.jface.preference.ColorFieldEditor.

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。