コード例 #1
0
        protected override string GetElasticFieldType(Type fieldType)
        {
            if (mappingType != null)
            {
                return(mappingType);
            }

            return(ElasticCoreTypeMapper.GetElasticType(fieldType));
        }
コード例 #2
0
        protected override string GetElasticFieldType(Type fieldType)
        {
            if (!customNumberType.IsNullOrEmpty())
            {
                return(customNumberType);
            }

            string mappingType = ElasticCoreTypeMapper.GetElasticNumericType(fieldType);

            return(mappingType ?? "double");
        }