clojurewerkz.elastisch.query

Convenience functions that build various query types.

All functions return maps and are completely optional (but recommended).

bool

(bool & args)

boosting

(boosting & args)

constant-score

(constant-score & args)

custom-filters-score

(custom-filters-score & args)

dis-max

(dis-max & args)

filtered

(filtered & args)

flt

flt-field

fuzzy

(fuzzy & args)
Fuzzy or Levenshtein (edit distance) query

For more information, please refer to http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html

fuzzy-like-this

(fuzzy-like-this & args)
FLT (fuzzy like this) query

For more information, please refer to http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-flt-query.html

fuzzy-like-this-field

(fuzzy-like-this-field & args)
FLT (fuzzy like this) query for a single field

For more information, please refer to http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-flt-field-query.html

has-child

(has-child & args)

ids

(ids type ids)

indices

(indices & args)

match

(match field query & args)
Match Query, before 0.19.9 known as Text Query.

For more information, please refer to http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-match-query.html

match-all

(match-all)(match-all & args)

mlt

mlt-field

more-like-this

(more-like-this & args)
MLT (More Like This) query

For more information, please refer to http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html

more-like-this-field

(more-like-this-field & args)
MLT (More Like This) query that works for a single field

For more information, please refer to http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-mlt-field-query.html

nested

(nested & args)

prefix

(prefix & args)

query-string

(query-string & args)

range

(range key & args)

sort

(sort attribute {:keys [ignore-unmapped order], :as v})
Sort query results.

span-first

(span-first & args)

span-near

(span-near & args)

span-not

(span-not & args)

span-or

(span-or & args)

span-term

(span-term & args)

term

(term key values & args)

terms

(terms key values & args)

top-children

(top-children & args)

wildcard

(wildcard & args)