Commit 0486a0a087067b19f65f0add4faf989f433599ef

Authored by Daniela Feitosa
1 parent f2d95acd
Exists in elasticsearch_api

Add person & gallery to allow search on those models

plugins/elasticsearch/lib/ext/gallery.rb 0 → 100644
... ... @@ -0,0 +1,13 @@
  1 +require_dependency 'gallery'
  2 +require_relative '../elasticsearch_indexed_model'
  3 +
  4 +class Gallery
  5 + include ElasticsearchIndexedModel
  6 +
  7 + def self.control_fields
  8 + [
  9 + :advertise,
  10 + :published,
  11 + ]
  12 + end
  13 +end
... ...
plugins/elasticsearch/lib/ext/person.rb 0 → 100644
... ... @@ -0,0 +1,13 @@
  1 +require_dependency 'person'
  2 +require_relative '../elasticsearch_indexed_model'
  3 +
  4 +class Person
  5 + include ElasticsearchIndexedModel
  6 +
  7 + def self.control_fields
  8 + [
  9 + :visible,
  10 + :public_profile,
  11 + ]
  12 + end
  13 +end
... ...