Skip to content

Instantly share code, notes, and snippets.

View tallpsmith's full-sized avatar

Paul Smith tallpsmith

  • Everest Engineering
  • Melbourne, Australia
View GitHub Profile
@karussell
karussell / ElasticInterface.java
Created July 24, 2012 13:35
Accessing ElasticSearch from Java without the ElasticSearch jar
/** Just a quick snippet to show how to use the REST ElasticSearch in Java - grab the parts you like ;)
* Instead of using the official Java API, where adding the complete ~20MB ElasticSearch jar is necessary.
*/
public class ElasticInterface {
public static void main(String[] args) throws Exception {
Module module = new DefaultModule();
Injector injector = Guice.createInjector(module);
ElasticInterface tws = injector.getInstance(ElasticInterface.class);
@karmi
karmi / .gitignore
Created May 15, 2012 14:11
Mix'n'Match different metrics of ElasticSearch with Cubism.js
.DS_Store
tmp/**/*
@Zorkin
Zorkin / simple-elastic.html
Created December 13, 2010 17:59
a simple static html page to play with elastic search
<html>
<head>
<script type="text/javascript"
src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.4.4");
google.setOnLoadCallback(function() {
$('#post').click(function() {
$.ajax({