aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2018-01-14 23:58:48 -0500
committerAlec Warner <antarus@gentoo.org>2018-01-14 23:58:48 -0500
commitab6cb3249cd76ccf4d63f18fbf6df7aa24944111 (patch)
tree78e9a10591ff4eff658c026a45576199490df761 /lib/kkuleomi
parentChange secrets dist to pull from env. (diff)
downloadpackages-5-ab6cb3249cd76ccf4d63f18fbf6df7aa24944111.tar.gz
packages-5-ab6cb3249cd76ccf4d63f18fbf6df7aa24944111.tar.bz2
packages-5-ab6cb3249cd76ccf4d63f18fbf6df7aa24944111.zip
"Filtered / Query" is deprecated in ES 5.1
https://www.elastic.co/guide/en/elasticsearch/reference/5.1/query-dsl-filtered-query.html "Filtered / Filter" is still valid.
Diffstat (limited to 'lib/kkuleomi')
-rw-r--r--lib/kkuleomi/store/models/package_search.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kkuleomi/store/models/package_search.rb b/lib/kkuleomi/store/models/package_search.rb
index 150b0e9..c670f84 100644
--- a/lib/kkuleomi/store/models/package_search.rb
+++ b/lib/kkuleomi/store/models/package_search.rb
@@ -31,8 +31,8 @@ module Kkuleomi::Store::Models::PackageSearch
def find_atoms_by_useflag(useflag)
Version.search(
query: {
- filtered: {
- query: { match_all: {} },
+ bool: {
+ must: { match_all: {} },
filter: { term: { use: useflag } }
}
},