Permalink
Browse files

Working pyelasticsearch example

  • Loading branch information...
1 parent 1056ced commit 239d4da8bc2cee4850a66cc6ecae54c93cc57e53 @rjurney committed Dec 29, 2012
Showing with 6 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +4 −0 ch3/elasticsearch.py
View
@@ -1,2 +1,4 @@
*.txt
*.pyc
+venv
+pyelasticsearch
View
@@ -0,0 +1,4 @@
+import pyelasticsearch
+elastic = pyelasticsearch.ElasticSearch('http://localhost:9200/inbox')
+results = elastic.search("body:hadoop", index="emails")
+print results

0 comments on commit 239d4da

Please sign in to comment.