Skip to content
Browse files

Use GET requests for the count API, fixes #5

  • Loading branch information...
1 parent 3a405b9 commit d2d2f0f63ff9f65c555099913ad1d5f0b8728586 @michaelklishin michaelklishin committed Oct 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/clojurewerkz/elastisch/rest/document.clj
View
6 src/clojurewerkz/elastisch/rest/document.clj
@@ -104,11 +104,11 @@
Related ElasticSearch documentation guide: http://www.elasticsearch.org/guide/reference/api/count.html"
([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 d2d2f0f

Please sign in to comment.
Something went wrong with that request. Please try again.