Skip to content

Commit

Permalink
Add elastisch.query fns for remaining query types
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Apr 21, 2012
1 parent 08b0e8f commit 85100e4
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions src/clojurewerkz/elastisch/query.clj
Expand Up @@ -181,7 +181,37 @@
[& {:as options}]
{:wildcard options})

;; has-child
;; top-children
;; nested
;; custom-filters-score
(defn indices
"Indices query
For more information, please refer to http://www.elasticsearch.org/guide/reference/query-dsl/indices-query.html"
[& {:as options}]
{:indices options})

(defn has-child
"Has Child query
For more information, please refer to http://www.elasticsearch.org/guide/reference/query-dsl/has-child-query.html"
[& {:as options}]
{:has_child options})

(defn custom-filters-score
"Custom Filters Score query
For more information, please refer to http://www.elasticsearch.org/guide/reference/query-dsl/custom-filters-score-query.html"
[& {:as options}]
{:custom_filters_score options})

(defn top-children
"Top children query
For more information, please refer to http://www.elasticsearch.org/guide/reference/query-dsl/top-children-query.html"
[& {:as options}]
{:top_children options})

(defn nested
"Nested document query
For more information, please refer to http://www.elasticsearch.org/guide/reference/query-dsl/nested-query.html"
[& {:as options}]
{:nested options})

0 comments on commit 85100e4

Please sign in to comment.