diff options
Diffstat (limited to 'app/repositories/useflag_repository.rb')
-rw-r--r-- | app/repositories/useflag_repository.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/repositories/useflag_repository.rb b/app/repositories/useflag_repository.rb index 8198a9b..2f8034f 100644 --- a/app/repositories/useflag_repository.rb +++ b/app/repositories/useflag_repository.rb @@ -14,7 +14,7 @@ class UseflagRepository < BaseRepository mapping dynamic: 'strict' do indexes :id, type: 'keyword' - indexes :name, type: 'text' + indexes :name, type: 'text', fields: { raw: { type: "keyword" } } indexes :description, type: 'text' indexes :atom, type: 'keyword' indexes :scope, type: 'keyword' @@ -27,7 +27,7 @@ class UseflagRepository < BaseRepository def get_flags(name) result = { local: {}, global: [], use_expand: [] } - find_all_by(:name, name).each do |flag| + find_all_by("name.raw", name).each do |flag| case flag.scope when 'local' result[:local][flag.atom] = flag |