aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2018-01-20 15:31:48 -0500
committerAlec Warner <antarus@gentoo.org>2018-01-20 15:31:48 -0500
commitc2312d196a2bd2d8f0378a97f22cf727e3547ed6 (patch)
treeae20aca9801642f305657ef19a627deeaafb87eb /lib/kkuleomi
parentBoost factor is replaced by weight. (diff)
downloadpackages-5-c2312d196a2bd2d8f0378a97f22cf727e3547ed6.tar.gz
packages-5-c2312d196a2bd2d8f0378a97f22cf727e3547ed6.tar.bz2
packages-5-c2312d196a2bd2d8f0378a97f22cf727e3547ed6.zip
Turn category names back into keywords.
The 'text' fields were not indexed properly. Keyword fields are indexed properly, so turn it back into a keyword. Also fix the index reloading to remove indices by name.
Diffstat (limited to 'lib/kkuleomi')
-rw-r--r--lib/kkuleomi/store.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kkuleomi/store.rb b/lib/kkuleomi/store.rb
index 23f88f2..853d397 100644
--- a/lib/kkuleomi/store.rb
+++ b/lib/kkuleomi/store.rb
@@ -36,7 +36,7 @@ module Kkuleomi::Store
# In ES 1.5, we could use 1 mega-index. But in ES6, each model needs its own.
types.each { |type|
client = type.gateway.client
- client.indices.delete(type.index_name) rescue nil if force
+ client.indices.delete(index: type.index_name) rescue nil if force
body = {
settings: type.settings.to_hash,
mappings: type.mappings.to_hash,