Browse files

Use GET requests for the count API, fixes #5

  • Loading branch information...
1 parent 1f80788 commit 71e2b163f0ed3cd9d74d2f2046004af03964760a @michaelklishin michaelklishin committed Oct 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/clojurewerkz/elastisch/rest/document.clj
@@ -104,11 +104,11 @@
Related ElasticSearch documentation guide:"
([index mapping-type]
- (rest/post (rest/count-url) (join-names index) (join-names mapping-type)))
+ (rest/get (rest/count-url) (join-names index) (join-names mapping-type)))
([index mapping-type query]
- (rest/post (rest/count-url) (join-names index) (join-names mapping-type) :body query))
+ (rest/get (rest/count-url) (join-names index) (join-names mapping-type) :body query))
([index mapping-type query & { :as options }]
- (rest/post (rest/count-url (join-names index) (join-names mapping-type))
+ (rest/get (rest/count-url (join-names index) (join-names mapping-type))
:query-params (select-keys options [:df :analyzer :default_operator])
:body query)))

0 comments on commit 71e2b16

Please sign in to comment.