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
app.post('/facebook/realtimeupdates', function(req, res) { | |
f = ':/facebook/realtimeupdates POST cb:'; | |
var object = req.param('object'); | |
var entry = req.param('entry'); | |
log.finer(__filename+f+'new notifications'); | |
log.finest(__filename+f+'object=('+object+')'); | |
log.finest(__filename+f+'entry=('+entry+')'); | |
res.send(200); |
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 -XPUT 'http://localhost:9200/twitter/tweet/1' -d '{ | |
"user" : "kimchy", | |
"post_date" : "2009-11-15T14:12:12", | |
"message" : "trying out Elastic Search" | |
}' | |
//shows data from above | |
curl -XGET 'http://localhost:9200/twitter/tweet/_search' -d '{ | |
query : { | |
bool : { |
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
elasticsearch 0.19.0 | |
java version "1.6.0_23" | |
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.2) | |
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode) | |
//shows 32 documents | |
curl -XGET 'http://localhost:9200/contacts/linkedin/_search?pretty=true' -d '{ | |
query: |