Commit 755ef3bca203b3d17ae84e81f73bf783aee34689
1 parent
479e4060
Exists in
elasticsearch_api
model extensions working with the new helper name
Showing
8 changed files
with
16 additions
and
20 deletions
Show diff stats
plugins/elasticsearch/lib/ext/article.rb
| 1 | 1 | require_dependency 'article' |
| 2 | -require_relative '../elasticsearch_helper' | |
| 2 | +require_relative '../elasticsearch_indexed_model' | |
| 3 | 3 | |
| 4 | 4 | class Article |
| 5 | - include INDEXED_MODEL | |
| 5 | + include ElasticsearchIndexedModel | |
| 6 | 6 | |
| 7 | 7 | def self.control_fields |
| 8 | - %w(advertise published).map{ |e| e.to_sym } | |
| 8 | + [ | |
| 9 | + :advertise, | |
| 10 | + :published, | |
| 11 | + ] | |
| 9 | 12 | end |
| 10 | 13 | |
| 11 | 14 | def self.indexable_fields | ... | ... |
plugins/elasticsearch/lib/ext/category.rb
plugins/elasticsearch/lib/ext/comment.rb
plugins/elasticsearch/lib/ext/license.rb
plugins/elasticsearch/lib/ext/national_region.rb
plugins/elasticsearch/lib/ext/profile.rb
plugins/elasticsearch/lib/ext/scrap.rb