This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SearchPhaseExecutionException[ | |
Failedtoexecutephase[ | |
query | |
], | |
totalfailure;shardFailures{ | |
[ | |
QW61h7_NQryNftCVXV8c6w | |
][ | |
document | |
][ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl localhost:9200/yourindex/yourtype/_search -d '{ | |
"query": { | |
"query_string": { | |
"query": "galaxy" | |
} | |
}, | |
"fields": ["text","title"] | |
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomScriptFactory implements NativeScriptFactory { | |
@Override public ExecutableScript newScript (@Nullable Map<String,Object> params){ | |
return new RevertedScript(params); | |
} | |
} |