当前位置:网站首页>es7创建索引容易犯的错误
es7创建索引容易犯的错误
2022-07-03 05:07:00 【计算机中的小垃圾】
(1)es的type错误,对于es7来说,没有String类型只有text类型或者keyword类型
(2)"Root mapping definition has unsupported parameters:出现这个错误,还是版本问题。
记住es7mapping后面直接对接properties就可以了,不需要其他的,这个都是es6使用的。
(3)Failed to parse value [not_analyzed] as only [true] or [false] are allowed
这依旧是版本的问题,对于index来说存在问题
在es7中,只能为true或者false,如果想要不被分词就把数据类型设置为keyword,应为已经设置为keyword了,所以我们直接把not_analyzed这一行删除就可以了。
然后就执行成功了
边栏推荐
- Force GCC to compile 32-bit programs on 64 bit platform
- [research materials] 2021 annual report on mergers and acquisitions in the property management industry - Download attached
- Flutter monitors volume to realize waveform visualization of audio
- How to connect the network: Chapter 1 CSDN creation punch in
- Market status and development prospects of the global automatic tea picker industry in 2022
- Dynamic programming - related concepts, (tower problem)
- Caijing 365 stock internal reference: what's the mystery behind the good father-in-law paying back 50 million?
- Market status and development prospects of the global IOT active infrared sensor industry in 2022
- Automatic voltage rise and fall 5-40v multi string super capacitor charging chip and solution
- The consumption of Internet of things users is only 76 cents, and the price has become the biggest obstacle to the promotion of 5g industrial interconnection
猜你喜欢
How to connect the network: Chapter 2 (Part 1): a life cycle of TCP connection | CSDN creation punch in
"Hands on deep learning" pytorch edition Chapter II exercise
Cross platform plug-in flutter for displaying local notifications_ local_ notifications
leetcode452. Detonate the balloon with the minimum number of arrows
2022-02-11 daily clock in: problem fine brush
Celebrate the new year together
[set theory] relational power operation (relational power operation | examples of relational power operation | properties of relational power operation)
appium1.22. Appium inspector after X version needs to be installed separately
Retirement plan fails, 64 year old programmer starts work again
Shuttle + Alluxio 加速内存Shuffle起飞
随机推荐
Learning record of arouter principle
Market status and development prospect prediction of global neutral silicone sealant industry in 2022
Three representations of signed numbers: original code, inverse code and complement code
JS dynamic table creation
Promise
2022-02-12 daily clock in: problem fine brush
[set theory] relational power operation (relational power operation | examples of relational power operation | properties of relational power operation)
Career planning of counter attacking College Students
Celebrate the new year together
Messy change of mouse style in win system
Webapidom get page elements
On typescript and grammar
[research materials] annual report of China's pension market in 2021 - Download attached
Notes | numpy-07 Slice and index
Use Sqlalchemy module to obtain the table name and field name of the existing table in the database
Oracle SQL table data loss
Problems encountered in fuzzy query of SQL statements
1118 birds in forest (25 points)
document. The problem of missing parameters of referer is solved
最大连续子段和(动态规划,递归,递推)