本文整理匯總了Java中org.elasticsearch.script.ScriptService.SCRIPT_INDEX屬性的典型用法代碼示例。如果您正苦於以下問題:Java ScriptService.SCRIPT_INDEX屬性的具體用法?Java ScriptService.SCRIPT_INDEX怎麽用?Java ScriptService.SCRIPT_INDEX使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.elasticsearch.script.ScriptService
的用法示例。
在下文中一共展示了ScriptService.SCRIPT_INDEX屬性的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: toString
@Override
public String toString() {
String sSource = "_na_";
try {
sSource = XContentHelper.convertToJson(source, false);
} catch (Exception e) {
// ignore
}
return "index {[" + ScriptService.SCRIPT_INDEX + "][" + scriptLang + "][" + id + "], source[" + sSource + "]}";
}
示例2: PutIndexedScriptResponse
public PutIndexedScriptResponse(String type, String id, long version, boolean created) {
this.index = ScriptService.SCRIPT_INDEX;
this.id = id;
this.scriptLang = type;
this.version = version;
this.created = created;
}
示例3: readFrom
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
index = ScriptService.SCRIPT_INDEX;
scriptLang = in.readString();
id = in.readString();
version = in.readLong();
created = in.readBoolean();
}
示例4: indices
@Override
public String[] indices() {
return new String[]{ScriptService.SCRIPT_INDEX};
}
示例5: toString
@Override
public String toString() {
return "[" + ScriptService.SCRIPT_INDEX + "][" + scriptLang + "][" + id + "]";
}
示例6: toString
@Override
public String toString() {
return "delete {[" + ScriptService.SCRIPT_INDEX + "][" + scriptLang + "][" + id + "]}";
}