This file contains hidden or 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
/** 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); |
This file contains hidden or 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
.DS_Store | |
tmp/**/* |
This file contains hidden or 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
<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({ |