请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

es版本7.0.0 建索引

出现{ “error”: { “root_cause”: [ { “type”: “mapper_parsing_exception”, “reason”: “Root mapping definition has unsupported parameters: [house : {dynamic=false, properties={area={type=integer}, roundService={index=analyzed, type=text}, description={index=analyzed, type=text}, title={index=analyzed, type=text}, subwayStationName={type=keyword}, layoutDesc={index=analyzed, type=text}, tags={type=text}, rentWay={type=integer}, distanceToSubway={type=integer}, createTime={format=strict_date_optional_time||epoch_millis, type=date}, price={type=integer}, street={type=keyword}, district={type=keyword}, cityEnName={type=keyword}, regionEnName={type=keyword}, lastUpdateTime={formate=strict_date_optional_time||epoch_millis, type=date}, direction={type=integer}, subwayLineName={type=keyword}, traffic={index=analyzed, type=text}}}]” } ], “type”: “mapper_parsing_exception”, “reason”: “Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [house : {dynamic=false, properties={area={type=integer}, roundService={index=analyzed, type=text}, description={index=analyzed, type=text}, title={index=analyzed, type=text}, subwayStationName={type=keyword}, layoutDesc={index=analyzed, type=text}, tags={type=text}, rentWay={type=integer}, distanceToSubway={type=integer}, createTime={format=strict_date_optional_time||epoch_millis, type=date}, price={type=integer}, street={type=keyword}, district={type=keyword}, cityEnName={type=keyword}, regionEnName={type=keyword}, lastUpdateTime={formate=strict_date_optional_time||epoch_millis, type=date}, direction={type=integer}, subwayLineName={type=keyword}, traffic={index=analyzed, type=text}}}]”, “caused_by”: { “type”: “mapper_parsing_exception”, “reason”: “Root mapping definition has unsupported parameters: [house : {dynamic=false, properties={area={type=integer}, roundService={index=analyzed, type=text}, description={index=analyzed, type=text}, title={index=analyzed, type=text}, subwayStationName={type=keyword}, layoutDesc={index=analyzed, type=text}, tags={type=text}, rentWay={type=integer}, distanceToSubway={type=integer}, createTime={format=strict_date_optional_time||epoch_millis, type=date}, price={type=integer}, street={type=keyword}, district={type=keyword}, cityEnName={type=keyword}, regionEnName={type=keyword}, lastUpdateTime={formate=strict_date_optional_time||epoch_millis, type=date}, direction={type=integer}, subwayLineName={type=keyword}, traffic={index=analyzed, type=text}}}]” } }, “status”: 400 }

正在回答 回答被采纳积分+3

1回答

瓦力老师 2019-05-08 16:24:57

亲,每个大版本的索引建立方式是不一样的,这边建议先按照课程版本去学习应用,再学es本身的技术细节哈

1 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信