aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2018-01-16 23:58:29 -0500
committerAlec Warner <antarus@gentoo.org>2018-01-16 23:58:29 -0500
commit015298374ead287a2d3a7eda1fe9980bc9a94fd8 (patch)
tree351d18295c3a240a6b47ae23c8d943f18822e94a /lib
parentFix Typoes. (diff)
downloadpackages-5-015298374ead287a2d3a7eda1fe9980bc9a94fd8.tar.gz
packages-5-015298374ead287a2d3a7eda1fe9980bc9a94fd8.tar.bz2
packages-5-015298374ead287a2d3a7eda1fe9980bc9a94fd8.zip
has_parent does not support filter.
ES6 replaces this with 'query'. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-parent-query.html
Diffstat (limited to 'lib')
-rw-r--r--lib/kkuleomi/store/model.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kkuleomi/store/model.rb b/lib/kkuleomi/store/model.rb
index 99cb8e4..653884b 100644
--- a/lib/kkuleomi/store/model.rb
+++ b/lib/kkuleomi/store/model.rb
@@ -37,8 +37,8 @@ module Kkuleomi::Store::Model
bool: {
filter: {
has_parent: {
- type: parent.class.document_type,
- filter: { term: { _id: parent.id } }
+ parent_type: parent.class.document_type,
+ query: { term: { _id: parent.id } }
}
},
must: { match_all: {} }