我使用Spring boot 2.0.1.RELEASE/ Spring Data Elasticsearch 3.0.6。我用@Document注释注解了我的域类,我有一个字段,如下所示:如您所见,我需要将字段类型设置为IP_Range (存在于弹性搜索引擎数据类型中),但不存在于FieldType枚举中。我想用ElasticsearchTemplate.createIndex(<e
我试图将数据发送到elasticsearch,但是遇到了一个问题,在这个问题中,我的number字段只以字符串的形式出现。这些是我所采取的步骤。步骤1.添加索引和地图 "mappings": { "date":update to [zyxnewcoreyxbl_060619] as the final <em