Make Account searchable
This commit is contained in:
parent
5cf851dc39
commit
967198ab25
|
@ -1,6 +1,16 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Account < ApplicationRecord
|
||||
include Searchable
|
||||
|
||||
settings index: { number_of_shards: 1 } do
|
||||
mapping dynamic: false do
|
||||
indexes :nickname, analyzer: 'english'
|
||||
indexes :public_name, analyzer: 'russian'
|
||||
indexes :biography, analyzer: 'russian'
|
||||
end
|
||||
end
|
||||
|
||||
################
|
||||
# Associations #
|
||||
################
|
||||
|
|
Reference in New Issue