質問編集履歴
1
試したことを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,6 +42,26 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
+
###試したこと
|
46
|
+
|
47
|
+
```
|
48
|
+
|
49
|
+
#['should'][1]を指定してみた
|
50
|
+
|
51
|
+
body['query']['bool']['should'][0]['match']['year'] = year
|
52
|
+
|
53
|
+
body['query']['bool']['should'][1]['match']['date'] = date
|
54
|
+
|
55
|
+
# エラー出力
|
56
|
+
|
57
|
+
body['query']['bool']['should'][1]['match']['date'] = date
|
58
|
+
|
59
|
+
IndexError: list index out of range
|
60
|
+
|
61
|
+
```
|
62
|
+
|
63
|
+
|
64
|
+
|
45
65
|
###参考
|
46
66
|
|
47
67
|
most_fields
|