Skip to content

Commit

Permalink
fix readme example for es-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
terjesb committed Oct 17, 2013
1 parent bb6fd41 commit 9295981
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -162,11 +162,11 @@ Usage:
:number_of_replicas 0}}})

;; If the ES index doesn't exist, make-es-handler will create it when called.
(defn es-handler [] (make-es-handler {:es-url "http://localhost:9200/"
:es-index "crawl"
:es-type "page"
:es-index-settings index-settings
:http-opts {}}))
(def es-handler (make-es-handler {:es-url "http://localhost:9200/"
:es-index "crawl"
:es-type "page"
:es-index-settings index-settings
:http-opts {}}))

(def c (crawl {:url "http://example.com" :handler es-handler}))

Expand Down

0 comments on commit 9295981

Please sign in to comment.