diff --git a/lib/tasks/search_index_es.rake b/lib/tasks/search_index_es.rake index 4f41f0a39..59993ab9e 100644 --- a/lib/tasks/search_index_es.rake +++ b/lib/tasks/search_index_es.rake @@ -178,7 +178,7 @@ def get_mapping_properties_object(object) object.columns_hash.each do |key, value| if value.type == :string && value.limit && value.limit <= 5000 && store_columns.exclude?(key) result[object.name][:properties][key] = { - type: 'text', + type: 'string', fields: { raw: { 'type': 'string', 'index': 'not_analyzed' } }