Commit
a8eacd43e54c8c28dbdd15931b91159cea4261c0
elasticsearch: defines models that will be indexed
* Person
* Community
* TextArticle
* Event
* UploadedFile
Showing
12 changed files
with
39 additions
and
103 deletions
Show diff stats
| @@ -1,13 +0,0 @@ |
| @@ -1,13 +0,0 @@ |
1
| -require_dependency 'article' |
| |
2
| -require_relative '../elasticsearch_indexed_model' |
| |
3
| - |
| |
4
| -class Article |
| |
5
| - include ElasticsearchIndexedModel |
| |
6
| - |
| |
7
| - def self.control_fields |
| |
8
| - [ |
| |
9
| - :advertise, |
| |
10
| - :published, |
| |
11
| - ] |
| |
12
| - end |
| |
13
| -end |
| |
| @@ -1,11 +0,0 @@ |
| @@ -1,11 +0,0 @@ |
1
| -require_dependency 'category' |
| |
2
| -require_relative '../elasticsearch_indexed_model' |
| |
3
| - |
| |
4
| -class Category |
| |
5
| - include ElasticsearchIndexedModel |
| |
6
| - |
| |
7
| - def self.control_fields |
| |
8
| - [] |
| |
9
| - end |
| |
10
| - |
| |
11
| -end |
| |
| @@ -1,10 +0,0 @@ |
| @@ -1,10 +0,0 @@ |
1
| -require_dependency 'comment' |
| |
2
| -require_relative '../elasticsearch_indexed_model' |
| |
3
| - |
| |
4
| -class Comment |
| |
5
| - include ElasticsearchIndexedModel |
| |
6
| - |
| |
7
| - def self.control_fields |
| |
8
| - [] |
| |
9
| - end |
| |
10
| -end |
| |
| @@ -0,0 +1,13 @@ |
| @@ -0,0 +1,13 @@ |
| |
1
| +require_dependency 'event' |
| |
2
| +require_relative '../elasticsearch_indexed_model' |
| |
3
| + |
| |
4
| +class Event |
| |
5
| + include ElasticsearchIndexedModel |
| |
6
| + |
| |
7
| + def self.control_fields |
| |
8
| + [ |
| |
9
| + :advertise, |
| |
10
| + :published, |
| |
11
| + ] |
| |
12
| + end |
| |
13
| +end |
| @@ -1,13 +0,0 @@ |
| @@ -1,13 +0,0 @@ |
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 |
| |
| @@ -1,10 +0,0 @@ |
| @@ -1,10 +0,0 @@ |
1
| -require_dependency 'license.rb' |
| |
2
| -require_relative '../elasticsearch_indexed_model' |
| |
3
| - |
| |
4
| -class License |
| |
5
| - include ElasticsearchIndexedModel |
| |
6
| - |
| |
7
| - def self.control_fields |
| |
8
| - [] |
| |
9
| - end |
| |
10
| -end |
| |
| @@ -1,10 +0,0 @@ |
| @@ -1,10 +0,0 @@ |
1
| -require_dependency 'national_region' |
| |
2
| -require_relative '../elasticsearch_indexed_model' |
| |
3
| - |
| |
4
| -class NationalRegion |
| |
5
| - include ElasticsearchIndexedModel |
| |
6
| - |
| |
7
| - def self.control_fields |
| |
8
| - [] |
| |
9
| - end |
| |
10
| -end |
| |
| @@ -1,13 +0,0 @@ |
| @@ -1,13 +0,0 @@ |
1
| -require_dependency 'profile' |
| |
2
| -require_relative '../elasticsearch_indexed_model' |
| |
3
| - |
| |
4
| -class Profile |
| |
5
| - include ElasticsearchIndexedModel |
| |
6
| - |
| |
7
| - def self.control_fields |
| |
8
| - [ |
| |
9
| - :visible, |
| |
10
| - :public_profile, |
| |
11
| - ] |
| |
12
| - end |
| |
13
| -end |
| |
| @@ -1,13 +0,0 @@ |
| @@ -1,13 +0,0 @@ |
1
| -require_dependency 'scrap' |
| |
2
| -require_relative '../elasticsearch_indexed_model' |
| |
3
| - |
| |
4
| -class Scrap |
| |
5
| - include ElasticsearchIndexedModel |
| |
6
| - |
| |
7
| - def self.control_fields |
| |
8
| - [ |
| |
9
| - :advertise, |
| |
10
| - :published, |
| |
11
| - ] |
| |
12
| - end |
| |
13
| -end |
| |
| @@ -0,0 +1,13 @@ |
| @@ -0,0 +1,13 @@ |
| |
1
| +require_dependency 'text_article' |
| |
2
| +require_relative '../elasticsearch_indexed_model' |
| |
3
| + |
| |
4
| +class TextArticle |
| |
5
| + include ElasticsearchIndexedModel |
| |
6
| + |
| |
7
| + def self.control_fields |
| |
8
| + [ |
| |
9
| + :advertise, |
| |
10
| + :published, |
| |
11
| + ] |
| |
12
| + end |
| |
13
| +end |
| @@ -0,0 +1,13 @@ |
| @@ -0,0 +1,13 @@ |
| |
1
| +require_dependency 'uploaded_file' |
| |
2
| +require_relative '../elasticsearch_indexed_model' |
| |
3
| + |
| |
4
| +class UploadedFile |
| |
5
| + include ElasticsearchIndexedModel |
| |
6
| + |
| |
7
| + def self.control_fields |
| |
8
| + [ |
| |
9
| + :advertise, |
| |
10
| + :published, |
| |
11
| + ] |
| |
12
| + end |
| |
13
| +end |
| @@ -1,10 +0,0 @@ |
| @@ -1,10 +0,0 @@ |
1
| -require_dependency 'user' |
| |
2
| -require_relative '../elasticsearch_indexed_model' |
| |
3
| - |
| |
4
| -class User |
| |
5
| - include ElasticsearchIndexedModel |
| |
6
| - |
| |
7
| - def self.control_fields |
| |
8
| - [] |
| |
9
| - end |
| |
10
| -end |
| |