Enabled elasticsearch 2.4 support by using type string.

This commit is contained in:
Martin Edenhofer 2018-07-22 16:58:57 +02:00
parent eebec0aebb
commit 0fd7dde63e

View file

@ -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' }
}