File tree 3 files changed +86
-75
lines changed
spec/operations/filtering
3 files changed +86
-75
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ class Resource < ApplicationRecord
117
117
after_commit :queue_fetch_thumbnail , on : [ :create , :update ]
118
118
after_commit :trigger_event_creation , on : [ :create ]
119
119
120
- has_keyword_search! against :%i[ title description ]
120
+ has_keyword_search! against : %i[ title description ]
121
121
searchkick ( word_start : TYPEAHEAD_ATTRIBUTES ,
122
122
callbacks : :async ,
123
123
batch_size : 500 ,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ class Subject < ApplicationRecord
9
9
include SerializedAbilitiesFor
10
10
include Filterable
11
11
include SearchIndexable
12
+ include HasKeywordSearch
12
13
13
14
# Associations
14
15
has_many :text_subjects , dependent : :destroy
@@ -40,6 +41,7 @@ class Subject < ApplicationRecord
40
41
alias_attribute :title , :name
41
42
42
43
# Search
44
+ has_keyword_search! against : %i[ name ]
43
45
searchkick ( word_start : TYPEAHEAD_ATTRIBUTES ,
44
46
callbacks : :async ,
45
47
batch_size : 500 )
You can’t perform that action at this time.
0 commit comments