6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'app/indexers/curation_concerns/file_set_indexer.rb', line 6
def generate_solr_document
super.tap do |solr_doc|
solr_doc[Solrizer.solr_name('hasRelatedMediaFragment', :symbol)] = object.representative_id
solr_doc[Solrizer.solr_name('hasRelatedImage', :symbol)] = object.thumbnail_id
solr_doc[Solrizer.solr_name('label')] = object.label
solr_doc[Solrizer.solr_name('label', :stored_sortable)] = object.label
solr_doc[Solrizer.solr_name('file_format')] = file_format
solr_doc[Solrizer.solr_name('file_format', :facetable)] = file_format
solr_doc[Solrizer.solr_name(:file_size, STORED_LONG)] = object.file_size[0]
solr_doc['all_text_timv'] = object..content if object..present?
solr_doc['height_is'] = Integer(object.height.first) if object.height.present?
solr_doc['width_is'] = Integer(object.width.first) if object.width.present?
solr_doc[Solrizer.solr_name('mime_type', :stored_sortable)] = object.mime_type
solr_doc['thumbnail_path_ss'] = thumbnail_path
solr_doc[Solrizer.solr_name('digest', :symbol)] = digest_from_content
solr_doc[Solrizer.solr_name('page_count')] = object.page_count
solr_doc[Solrizer.solr_name('file_title')] = object.file_title
solr_doc[Solrizer.solr_name('duration')] = object.duration
solr_doc[Solrizer.solr_name('sample_rate')] = object.sample_rate
solr_doc[Solrizer.solr_name('original_checksum')] = object.original_checksum
end
end
|