Liking cljdoc? Tell your friends :D

ductile.query


boolclj

(bool opts)

Inputs: [opts :- BoolQueryParams] Returns: BoolQuery

Boolean Query

Inputs: [opts :- BoolQueryParams]
Returns: BoolQuery

Boolean Query
sourceraw docstring

filter-map->terms-queryclj

(filter-map->terms-query filter-map)
(filter-map->terms-query filter-map query)

transforms a filter map to en ES terms query

transforms a filter map to en ES terms query
sourceraw docstring

filteredclj

(filtered opts)

Filtered query

Filtered query
sourceraw docstring

idsclj

(ids ids)

Inputs: [ids :- [s/Str]] Returns: IdsQuery

Ids Query

Inputs: [ids :- [s/Str]]
Returns: IdsQuery

Ids Query
sourceraw docstring

nestedclj

(nested opts)

Nested document query

Nested document query
sourceraw docstring

nested-termsclj

(nested-terms filters)

make nested terms from a filter: [[[:observable :type] ip] [[:observable :value] 42.42.42.1]] -> [{:terms {observable.type [ip]}} {:terms {observable.value [42.42.42.1]}}]

we force all values to lowercase, since our indexing does the same for all terms.

make nested terms from a filter:
  [[[:observable :type] ip] [[:observable :value] 42.42.42.1]]
  ->
  [{:terms {observable.type [ip]}} {:terms {observable.value [42.42.42.1]}}]

we force all values to lowercase, since our indexing does the same for all terms.
sourceraw docstring

prepare-termsclj

(prepare-terms filter-map)
source

termclj

(term key values)
(term key values opts)

Term Query

Term Query
sourceraw docstring

termsclj

(terms key values)
(terms key values opts)

Terms Query

Terms Query
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close