Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use GET requests for the count API, fixes #5

  • Loading branch information...
commit 71e2b163f0ed3cd9d74d2f2046004af03964760a 1 parent 1f80788
@michaelklishin michaelklishin authored
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)))
Please sign in to comment.
Something went wrong with that request. Please try again.