diff options
author | Alec Warner <antarus@gentoo.org> | 2018-01-20 15:31:48 -0500 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2018-01-20 15:31:48 -0500 |
commit | c2312d196a2bd2d8f0378a97f22cf727e3547ed6 (patch) | |
tree | ae20aca9801642f305657ef19a627deeaafb87eb /lib/kkuleomi | |
parent | Boost factor is replaced by weight. (diff) | |
download | packages-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.rb | 2 |
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, |