Skip to content

Instantly share code, notes, and snippets.

View pecke01's full-sized avatar

Marcus Granström pecke01

  • Stockholm, Sweden
View GitHub Profile
SearchPhaseExecutionException[
Failedtoexecutephase[
query
],
totalfailure;shardFailures{
[
QW61h7_NQryNftCVXV8c6w
][
document
][
@pecke01
pecke01 / gist:5956540
Last active December 19, 2015 12:39
IRC question
curl localhost:9200/yourindex/yourtype/_search -d '{
"query": {
"query_string": {
"query": "galaxy"
}
},
"fields": ["text","title"]
}'
curl -XPOST http://localhost:9200/myindex/mytype/1 -d '{ "name":"igungor"}'
curl -XPOST http://localhost:9200/myindex/mytype/_search -d '{ "filter" : { "term" : { "name" : "igungor" } } }'
Result:
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
public class CustomScriptFactory implements NativeScriptFactory {
@Override public ExecutableScript newScript (@Nullable Map<String,Object> params){
return new RevertedScript(params);
}
}