diff --git a/config/initializers/constants.rb b/config/initializers/constants.rb index 2f8ee2518..b264f4162 100644 --- a/config/initializers/constants.rb +++ b/config/initializers/constants.rb @@ -176,6 +176,7 @@ class Constants #============================================================================= TEXT_EXTRACT_FILE_TYPES = [ + 'application/msword', 'application/pdf', 'application/rtf', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', diff --git a/config/initializers/extends.rb b/config/initializers/extends.rb index 80f3e4273..c7c0492b5 100644 --- a/config/initializers/extends.rb +++ b/config/initializers/extends.rb @@ -53,12 +53,13 @@ class Extends # are only supported REPOSITORY_EXTRA_SEARCH_ATTR = ['repository_text_values.data', 'repository_list_items.data', - 'assets.file_file_name'] + 'assets.file_file_name', + 'asset_text_data.data'] # Array of includes used in search query for repository rows REPOSITORY_SEARCH_INCLUDES = [:repository_text_value, repository_list_value: :repository_list_item, - repository_asset_value: :asset] + repository_asset_value: { asset: :asset_text_datum }] # List of implemented core API versions API_VERSIONS = ['20170715']