Skip to content

Instantly share code, notes, and snippets.

@hiro88hyo
Created November 2, 2015 00:48
Show Gist options
  • Save hiro88hyo/843a044b0061899c1d41 to your computer and use it in GitHub Desktop.
Save hiro88hyo/843a044b0061899c1d41 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="elasticsearch.js"></script>
<script>
function load(){
var client = new elasticsearch.Client({
host: 'xx.xx.xx.xx:xxxx',
log: 'trace'
});
client.search({
index: 'resgame-bm',
body: {
query: {
match_all:{}
}
}
}, function(error, response){
});
};
</script>
</head>
<body onload="load()">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment