This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-10-09
Channels
- # admin-announcements (9)
- # boot (114)
- # cider (15)
- # cljs-dev (10)
- # clojure (35)
- # clojure-boston (5)
- # clojure-dev (39)
- # clojure-greece (1)
- # clojure-japan (10)
- # clojure-nl (3)
- # clojure-poland (2)
- # clojure-russia (10)
- # clojure-sg (8)
- # clojure-switzerland (1)
- # clojure-uk (34)
- # clojurescript (76)
- # clojurescript-ios (3)
- # clojurewerkz (1)
- # clojurex (9)
- # cursive (3)
- # datomic (1)
- # devcards (137)
- # emacs (5)
- # events (1)
- # hoplon (99)
- # jobs (1)
- # ldnclj (50)
- # off-topic (1)
- # om (3)
- # onyx (10)
- # re-frame (4)
- # reagent (1)
- # ring-swagger (15)
- # yada (35)
hi all, I’m having missing
filter issue with elastisch. I have the following records
{:name "a" :email ""}
{:name "b" :email nil}
{:name "c" :email nil}
and querying it directly from elastic search works fine GET /uni_test/users/_search
returns all 3 records while
GET /uni_test/users/_search
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter":{
"missing": {
"field": "email"
}
}
}
}
}
returns 2 records as expected, but when I do it in elastisch I keep getting all 3 records
(doc/search *es* test-index (name :users)
{:query {:filtered {:filter {:missing {:field :email}}
:query {:match_all {}}}}})
am I missing something? I’ve tried with both :filter
and :query
as well as :filtered
query, also tried using elastisch 2.1.0, 2.2.0-beta4 and even upgraded elasticsearch client to 1.7.2…