(bool opts)
Inputs: [opts :- BoolQueryParams] Returns: BoolQuery
Boolean Query
Inputs: [opts :- BoolQueryParams] Returns: BoolQuery Boolean Query
(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
(ids ids)
Inputs: [ids :- [s/Str]] Returns: IdsQuery
Ids Query
Inputs: [ids :- [s/Str]] Returns: IdsQuery Ids Query
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close