aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2018-01-19 17:37:42 -0500
committerAlec Warner <antarus@gentoo.org>2018-01-19 17:37:42 -0500
commitbdf2545b7ceb3ed1b4359f3a7befd11bff9dfa36 (patch)
tree5c41c0e458cee5d65cc65979d0342e196de26144
parentPull more elasticsearch gems forward. (diff)
downloadpackages-5-bdf2545b7ceb3ed1b4359f3a7befd11bff9dfa36.tar.gz
packages-5-bdf2545b7ceb3ed1b4359f3a7befd11bff9dfa36.tar.bz2
packages-5-bdf2545b7ceb3ed1b4359f3a7befd11bff9dfa36.zip
Boost factor is replaced by weight.
https://www.elastic.co/guide/en/elasticsearch/reference/1.4/query-dsl-function-score-query.html
-rw-r--r--lib/kkuleomi/store/models/package_search.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kkuleomi/store/models/package_search.rb b/lib/kkuleomi/store/models/package_search.rb
index c670f84..3b6be92 100644
--- a/lib/kkuleomi/store/models/package_search.rb
+++ b/lib/kkuleomi/store/models/package_search.rb
@@ -147,7 +147,7 @@ module Kkuleomi::Store::Models::PackageSearch
[
{
filter: { term: { category: 'virtual' } },
- boost_factor: 0.6
+ weight: 0.6
}
]
end