Browse Source

Enabled elasticsearch 2.4 support by using type string.

Martin Edenhofer 6 years ago
parent
commit
0fd7dde63e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/tasks/search_index_es.rake

+ 1 - 1
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' }
         }