回答編集履歴

1

コードブロックを追加

2020/01/29 01:07

投稿

ochame
ochame

スコア12

test CHANGED
@@ -1 +1,85 @@
1
1
  mapping 定義が問題のようでした。
2
+
3
+ ```
4
+
5
+ # 修正前
6
+
7
+ {
8
+
9
+ "mappings": {
10
+
11
+ "properties" : {
12
+
13
+ "_doc": {
14
+
15
+ "properties" : {
16
+
17
+ "id" : {
18
+
19
+ "type" : "keyword"
20
+
21
+ },
22
+
23
+ "name" : {
24
+
25
+ "type" : "keyword"
26
+
27
+ },
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+ }
36
+
37
+ }
38
+
39
+ }
40
+
41
+ }
42
+
43
+ ```
44
+
45
+
46
+
47
+ ```
48
+
49
+ # 修正後
50
+
51
+ {
52
+
53
+ "mappings": {
54
+
55
+ "properties" : {
56
+
57
+ "id" : {
58
+
59
+ "type" : "keyword"
60
+
61
+ },
62
+
63
+ "name" : {
64
+
65
+ "type" : "keyword"
66
+
67
+ },
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+ }
76
+
77
+ }
78
+
79
+ }
80
+
81
+ }
82
+
83
+ ```
84
+
85
+ と、type 名の指定を明示的に行ってたのが問題でした。