質問編集履歴

6

補足追記

2019/10/29 09:24

投稿

tera-chan
tera-chan

スコア6

test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,207 @@
28
28
 
29
29
 
30
30
 
31
-
31
+ ```検索JSON
32
+
33
+ {
34
+
35
+ "query": {
36
+
37
+ "multi_match": {
38
+
39
+ "query": "京都市",
40
+
41
+ "type": "best_fields",
42
+
43
+ "fields": [
44
+
45
+ "shop_name",
46
+
47
+ "address"
48
+
49
+ ]
50
+
51
+ }
52
+
53
+ }
54
+
55
+ }
56
+
57
+
58
+
59
+ 設定JSON
60
+
61
+ {
62
+
63
+ "settings": {
64
+
65
+ "number_of_replicas": "1",
66
+
67
+ "number_of_shards": "5",
68
+
69
+ "refresh_interval": "60s",
70
+
71
+ "max_result_window" : "100000",
72
+
73
+ "analysis": {
74
+
75
+ "filter": {
76
+
77
+ "pos_filter": {
78
+
79
+ "type": "kuromoji_part_of_speech",
80
+
81
+ "stoptags": [
82
+
83
+ "助詞-格助詞-一般",
84
+
85
+ "助詞-終助詞"
86
+
87
+ ]
88
+
89
+ },
90
+
91
+ "greek_lowercase_filter": {
92
+
93
+ "type": "lowercase",
94
+
95
+ "language": "greek"
96
+
97
+ },
98
+
99
+ "synonym_filter" : {
100
+
101
+ "type" : "synonym",
102
+
103
+ "synonyms_path" : "analysis/synonym.txt"
104
+
105
+ }
106
+
107
+ },
108
+
109
+ "tokenizer": {
110
+
111
+ "kuromoji": {
112
+
113
+ "type": "kuromoji_tokenizer",
114
+
115
+ "user_dictionary": "analysis/ec_dic.dic"
116
+
117
+ },
118
+
119
+ "ngram_tokenizer": {
120
+
121
+ "type": "nGram",
122
+
123
+ "min_gram": "2",
124
+
125
+ "max_gram": "3",
126
+
127
+ "token_chars": [
128
+
129
+ "letter",
130
+
131
+ "digit"
132
+
133
+ ]
134
+
135
+ }
136
+
137
+ },
138
+
139
+ "analyzer": {
140
+
141
+ "kuromoji_analyzer": {
142
+
143
+ "type": "custom",
144
+
145
+ "tokenizer": "kuromoji",
146
+
147
+ "char_filter": "html_strip",
148
+
149
+ "filter": [
150
+
151
+ "kuromoji_baseform",
152
+
153
+ "pos_filter",
154
+
155
+ "greek_lowercase_filter",
156
+
157
+ "cjk_width",
158
+
159
+ "synonym_filter"
160
+
161
+ ]
162
+
163
+ },
164
+
165
+ "ngram_analyzer": {
166
+
167
+ "tokenizer": "ngram_tokenizer",
168
+
169
+ "filter": [
170
+
171
+ "greek_lowercase_filter",
172
+
173
+ "cjk_width"
174
+
175
+ ]
176
+
177
+ }
178
+
179
+ }
180
+
181
+ }
182
+
183
+ },
184
+
185
+ "mappings" : {
186
+
187
+ "shop" : {
188
+
189
+ "_source": {
190
+
191
+ "enabled": true
192
+
193
+ },
194
+
195
+ "_all" : {
196
+
197
+ "enabled" : false,
198
+
199
+ "analyzer" : "ngram_analyzer"
200
+
201
+ },
202
+
203
+ "properties" : {
204
+
205
+ "shop_name" : {
206
+
207
+ "type" : "text",
208
+
209
+ "analyzer" : "ngram_analyzer"
210
+
211
+ },
212
+
213
+ "address" : {
214
+
215
+ "type" : "text",
216
+
217
+ "analyzer" : "ngram_analyzer"
218
+
219
+ }
220
+
221
+ }
222
+
223
+ }
224
+
225
+ }
226
+
227
+ }
228
+
229
+
230
+
231
+ ```
32
232
 
33
233
 
34
234
 

5

補足追記

2019/10/29 09:24

投稿

tera-chan
tera-chan

スコア6

test CHANGED
File without changes
test CHANGED
@@ -28,239 +28,7 @@
28
28
 
29
29
 
30
30
 
31
- ```{
32
31
 
33
- "settings": {
34
-
35
- "number_of_replicas": "1",
36
-
37
- "number_of_shards": "5",
38
-
39
- "refresh_interval": "60s",
40
-
41
- "max_result_window" : "100000",
42
-
43
- "analysis": {
44
-
45
- "filter": {
46
-
47
- "pos_filter": {
48
-
49
- "type": "kuromoji_part_of_speech",
50
-
51
- "stoptags": [
52
-
53
- "助詞-格助詞-一般",
54
-
55
- "助詞-終助詞"
56
-
57
- ]
58
-
59
- },
60
-
61
- "greek_lowercase_filter": {
62
-
63
- "type": "lowercase",
64
-
65
- "language": "greek"
66
-
67
- },
68
-
69
- "synonym_filter" : {
70
-
71
- "type" : "synonym",
72
-
73
- "synonyms_path" : "analysis/synonym.txt"
74
-
75
- }
76
-
77
- },
78
-
79
- "tokenizer": {
80
-
81
- "kuromoji": {
82
-
83
- "type": "kuromoji_tokenizer",
84
-
85
- "user_dictionary": "analysis/ec_dic.dic"
86
-
87
- },
88
-
89
- "ngram_tokenizer": {
90
-
91
- "type": "nGram",
92
-
93
- "min_gram": "2",
94
-
95
- "max_gram": "3",
96
-
97
- "token_chars": [
98
-
99
- "letter",
100
-
101
- "digit"
102
-
103
- ]
104
-
105
- }
106
-
107
- },
108
-
109
- "analyzer": {
110
-
111
- "kuromoji_analyzer": {
112
-
113
- "type": "custom",
114
-
115
- "tokenizer": "kuromoji",
116
-
117
- "char_filter": "html_strip",
118
-
119
- "filter": [
120
-
121
- "kuromoji_baseform",
122
-
123
- "pos_filter",
124
-
125
- "greek_lowercase_filter",
126
-
127
- "cjk_width",
128
-
129
- "synonym_filter"
130
-
131
- ]
132
-
133
- },
134
-
135
- "ngram_analyzer": {
136
-
137
- "tokenizer": "ngram_tokenizer",
138
-
139
- "filter": [
140
-
141
- "greek_lowercase_filter",
142
-
143
- "cjk_width"
144
-
145
- ]
146
-
147
- }
148
-
149
- }
150
-
151
- }
152
-
153
- },
154
-
155
- "mappings" : {
156
-
157
- "realshop" : {
158
-
159
- "_source": {
160
-
161
- "enabled": true
162
-
163
- },
164
-
165
- "_all" : {
166
-
167
- "enabled" : false,
168
-
169
- "analyzer" : "ngram_analyzer"
170
-
171
- },
172
-
173
- "properties" : {
174
-
175
- "real_shop_id" : {
176
-
177
- "type" : "integer"
178
-
179
- },
180
-
181
- "shop_name" : {
182
-
183
- "type" : "text",
184
-
185
- "analyzer" : "ngram_analyzer"
186
-
187
- },
188
-
189
- "zip_code1" : {
190
-
191
- "type" : "text",
192
-
193
- "analyzer" : "ngram_analyzer"
194
-
195
- },
196
-
197
- "zip_code2" : {
198
-
199
- "type" : "text",
200
-
201
- "analyzer" : "ngram_analyzer"
202
-
203
- },
204
-
205
- "city" : {
206
-
207
- "type" : "text",
208
-
209
- "analyzer" : "ngram_analyzer"
210
-
211
- },
212
-
213
- "address1" : {
214
-
215
- "type" : "text",
216
-
217
- "analyzer" : "ngram_analyzer"
218
-
219
- },
220
-
221
- "address2" : {
222
-
223
- "type" : "text",
224
-
225
- "analyzer" : "ngram_analyzer"
226
-
227
- },
228
-
229
- "phone" : {
230
-
231
- "type" : "text",
232
-
233
- "analyzer" : "ngram_analyzer"
234
-
235
- },
236
-
237
- "mail_address" : {
238
-
239
- "type" : "text",
240
-
241
- "analyzer" : "ngram_analyzer"
242
-
243
- },
244
-
245
- "business_hours" : {
246
-
247
- "type" : "text",
248
-
249
- "analyzer" : "ngram_analyzer"
250
-
251
- }
252
-
253
- }
254
-
255
- }
256
-
257
- }
258
-
259
- }
260
-
261
-
262
-
263
- ```
264
32
 
265
33
 
266
34
 

4

補足追記

2019/10/29 09:23

投稿

tera-chan
tera-chan

スコア6

test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,239 @@
28
28
 
29
29
 
30
30
 
31
-
31
+ ```{
32
+
33
+ "settings": {
34
+
35
+ "number_of_replicas": "1",
36
+
37
+ "number_of_shards": "5",
38
+
39
+ "refresh_interval": "60s",
40
+
41
+ "max_result_window" : "100000",
42
+
43
+ "analysis": {
44
+
45
+ "filter": {
46
+
47
+ "pos_filter": {
48
+
49
+ "type": "kuromoji_part_of_speech",
50
+
51
+ "stoptags": [
52
+
53
+ "助詞-格助詞-一般",
54
+
55
+ "助詞-終助詞"
56
+
57
+ ]
58
+
59
+ },
60
+
61
+ "greek_lowercase_filter": {
62
+
63
+ "type": "lowercase",
64
+
65
+ "language": "greek"
66
+
67
+ },
68
+
69
+ "synonym_filter" : {
70
+
71
+ "type" : "synonym",
72
+
73
+ "synonyms_path" : "analysis/synonym.txt"
74
+
75
+ }
76
+
77
+ },
78
+
79
+ "tokenizer": {
80
+
81
+ "kuromoji": {
82
+
83
+ "type": "kuromoji_tokenizer",
84
+
85
+ "user_dictionary": "analysis/ec_dic.dic"
86
+
87
+ },
88
+
89
+ "ngram_tokenizer": {
90
+
91
+ "type": "nGram",
92
+
93
+ "min_gram": "2",
94
+
95
+ "max_gram": "3",
96
+
97
+ "token_chars": [
98
+
99
+ "letter",
100
+
101
+ "digit"
102
+
103
+ ]
104
+
105
+ }
106
+
107
+ },
108
+
109
+ "analyzer": {
110
+
111
+ "kuromoji_analyzer": {
112
+
113
+ "type": "custom",
114
+
115
+ "tokenizer": "kuromoji",
116
+
117
+ "char_filter": "html_strip",
118
+
119
+ "filter": [
120
+
121
+ "kuromoji_baseform",
122
+
123
+ "pos_filter",
124
+
125
+ "greek_lowercase_filter",
126
+
127
+ "cjk_width",
128
+
129
+ "synonym_filter"
130
+
131
+ ]
132
+
133
+ },
134
+
135
+ "ngram_analyzer": {
136
+
137
+ "tokenizer": "ngram_tokenizer",
138
+
139
+ "filter": [
140
+
141
+ "greek_lowercase_filter",
142
+
143
+ "cjk_width"
144
+
145
+ ]
146
+
147
+ }
148
+
149
+ }
150
+
151
+ }
152
+
153
+ },
154
+
155
+ "mappings" : {
156
+
157
+ "realshop" : {
158
+
159
+ "_source": {
160
+
161
+ "enabled": true
162
+
163
+ },
164
+
165
+ "_all" : {
166
+
167
+ "enabled" : false,
168
+
169
+ "analyzer" : "ngram_analyzer"
170
+
171
+ },
172
+
173
+ "properties" : {
174
+
175
+ "real_shop_id" : {
176
+
177
+ "type" : "integer"
178
+
179
+ },
180
+
181
+ "shop_name" : {
182
+
183
+ "type" : "text",
184
+
185
+ "analyzer" : "ngram_analyzer"
186
+
187
+ },
188
+
189
+ "zip_code1" : {
190
+
191
+ "type" : "text",
192
+
193
+ "analyzer" : "ngram_analyzer"
194
+
195
+ },
196
+
197
+ "zip_code2" : {
198
+
199
+ "type" : "text",
200
+
201
+ "analyzer" : "ngram_analyzer"
202
+
203
+ },
204
+
205
+ "city" : {
206
+
207
+ "type" : "text",
208
+
209
+ "analyzer" : "ngram_analyzer"
210
+
211
+ },
212
+
213
+ "address1" : {
214
+
215
+ "type" : "text",
216
+
217
+ "analyzer" : "ngram_analyzer"
218
+
219
+ },
220
+
221
+ "address2" : {
222
+
223
+ "type" : "text",
224
+
225
+ "analyzer" : "ngram_analyzer"
226
+
227
+ },
228
+
229
+ "phone" : {
230
+
231
+ "type" : "text",
232
+
233
+ "analyzer" : "ngram_analyzer"
234
+
235
+ },
236
+
237
+ "mail_address" : {
238
+
239
+ "type" : "text",
240
+
241
+ "analyzer" : "ngram_analyzer"
242
+
243
+ },
244
+
245
+ "business_hours" : {
246
+
247
+ "type" : "text",
248
+
249
+ "analyzer" : "ngram_analyzer"
250
+
251
+ }
252
+
253
+ }
254
+
255
+ }
256
+
257
+ }
258
+
259
+ }
260
+
261
+
262
+
263
+ ```
32
264
 
33
265
 
34
266
 

3

補足追記

2019/10/29 09:23

投稿

tera-chan
tera-chan

スコア6

test CHANGED
File without changes
test CHANGED
@@ -28,237 +28,7 @@
28
28
 
29
29
 
30
30
 
31
- <code>{
32
31
 
33
- "settings": {
34
-
35
- "number_of_replicas": "1",
36
-
37
- "number_of_shards": "5",
38
-
39
- "refresh_interval": "60s",
40
-
41
- "max_result_window" : "100000",
42
-
43
- "analysis": {
44
-
45
- "filter": {
46
-
47
- "pos_filter": {
48
-
49
- "type": "kuromoji_part_of_speech",
50
-
51
- "stoptags": [
52
-
53
- "助詞-格助詞-一般",
54
-
55
- "助詞-終助詞"
56
-
57
- ]
58
-
59
- },
60
-
61
- "greek_lowercase_filter": {
62
-
63
- "type": "lowercase",
64
-
65
- "language": "greek"
66
-
67
- },
68
-
69
- "synonym_filter" : {
70
-
71
- "type" : "synonym",
72
-
73
- "synonyms_path" : "analysis/synonym.txt"
74
-
75
- }
76
-
77
- },
78
-
79
- "tokenizer": {
80
-
81
- "kuromoji": {
82
-
83
- "type": "kuromoji_tokenizer",
84
-
85
- "user_dictionary": "analysis/ec_dic.dic"
86
-
87
- },
88
-
89
- "ngram_tokenizer": {
90
-
91
- "type": "nGram",
92
-
93
- "min_gram": "2",
94
-
95
- "max_gram": "3",
96
-
97
- "token_chars": [
98
-
99
- "letter",
100
-
101
- "digit"
102
-
103
- ]
104
-
105
- }
106
-
107
- },
108
-
109
- "analyzer": {
110
-
111
- "kuromoji_analyzer": {
112
-
113
- "type": "custom",
114
-
115
- "tokenizer": "kuromoji",
116
-
117
- "char_filter": "html_strip",
118
-
119
- "filter": [
120
-
121
- "kuromoji_baseform",
122
-
123
- "pos_filter",
124
-
125
- "greek_lowercase_filter",
126
-
127
- "cjk_width",
128
-
129
- "synonym_filter"
130
-
131
- ]
132
-
133
- },
134
-
135
- "ngram_analyzer": {
136
-
137
- "tokenizer": "ngram_tokenizer",
138
-
139
- "filter": [
140
-
141
- "greek_lowercase_filter",
142
-
143
- "cjk_width"
144
-
145
- ]
146
-
147
- }
148
-
149
- }
150
-
151
- }
152
-
153
- },
154
-
155
- "mappings" : {
156
-
157
- "realshop" : {
158
-
159
- "_source": {
160
-
161
- "enabled": true
162
-
163
- },
164
-
165
- "_all" : {
166
-
167
- "enabled" : false,
168
-
169
- "analyzer" : "ngram_analyzer"
170
-
171
- },
172
-
173
- "properties" : {
174
-
175
- "real_shop_id" : {
176
-
177
- "type" : "integer"
178
-
179
- },
180
-
181
- "shop_name" : {
182
-
183
- "type" : "text",
184
-
185
- "analyzer" : "ngram_analyzer"
186
-
187
- },
188
-
189
- "zip_code1" : {
190
-
191
- "type" : "text",
192
-
193
- "analyzer" : "ngram_analyzer"
194
-
195
- },
196
-
197
- "zip_code2" : {
198
-
199
- "type" : "text",
200
-
201
- "analyzer" : "ngram_analyzer"
202
-
203
- },
204
-
205
- "city" : {
206
-
207
- "type" : "text",
208
-
209
- "analyzer" : "ngram_analyzer"
210
-
211
- },
212
-
213
- "address1" : {
214
-
215
- "type" : "text",
216
-
217
- "analyzer" : "ngram_analyzer"
218
-
219
- },
220
-
221
- "address2" : {
222
-
223
- "type" : "text",
224
-
225
- "analyzer" : "ngram_analyzer"
226
-
227
- },
228
-
229
- "phone" : {
230
-
231
- "type" : "text",
232
-
233
- "analyzer" : "ngram_analyzer"
234
-
235
- },
236
-
237
- "mail_address" : {
238
-
239
- "type" : "text",
240
-
241
- "analyzer" : "ngram_analyzer"
242
-
243
- },
244
-
245
- "business_hours" : {
246
-
247
- "type" : "text",
248
-
249
- "analyzer" : "ngram_analyzer"
250
-
251
- }
252
-
253
- }
254
-
255
- }
256
-
257
- }
258
-
259
- }
260
-
261
- <code>
262
32
 
263
33
 
264
34
 

2

補足追記

2019/10/29 09:22

投稿

tera-chan
tera-chan

スコア6

test CHANGED
File without changes
test CHANGED
@@ -258,7 +258,7 @@
258
258
 
259
259
  }
260
260
 
261
- </code>
261
+ <code>
262
262
 
263
263
 
264
264
 

1

補足追記

2019/10/29 09:21

投稿

tera-chan
tera-chan

スコア6

test CHANGED
File without changes
test CHANGED
@@ -28,6 +28,240 @@
28
28
 
29
29
 
30
30
 
31
+ <code>{
32
+
33
+ "settings": {
34
+
35
+ "number_of_replicas": "1",
36
+
37
+ "number_of_shards": "5",
38
+
39
+ "refresh_interval": "60s",
40
+
41
+ "max_result_window" : "100000",
42
+
43
+ "analysis": {
44
+
45
+ "filter": {
46
+
47
+ "pos_filter": {
48
+
49
+ "type": "kuromoji_part_of_speech",
50
+
51
+ "stoptags": [
52
+
53
+ "助詞-格助詞-一般",
54
+
55
+ "助詞-終助詞"
56
+
57
+ ]
58
+
59
+ },
60
+
61
+ "greek_lowercase_filter": {
62
+
63
+ "type": "lowercase",
64
+
65
+ "language": "greek"
66
+
67
+ },
68
+
69
+ "synonym_filter" : {
70
+
71
+ "type" : "synonym",
72
+
73
+ "synonyms_path" : "analysis/synonym.txt"
74
+
75
+ }
76
+
77
+ },
78
+
79
+ "tokenizer": {
80
+
81
+ "kuromoji": {
82
+
83
+ "type": "kuromoji_tokenizer",
84
+
85
+ "user_dictionary": "analysis/ec_dic.dic"
86
+
87
+ },
88
+
89
+ "ngram_tokenizer": {
90
+
91
+ "type": "nGram",
92
+
93
+ "min_gram": "2",
94
+
95
+ "max_gram": "3",
96
+
97
+ "token_chars": [
98
+
99
+ "letter",
100
+
101
+ "digit"
102
+
103
+ ]
104
+
105
+ }
106
+
107
+ },
108
+
109
+ "analyzer": {
110
+
111
+ "kuromoji_analyzer": {
112
+
113
+ "type": "custom",
114
+
115
+ "tokenizer": "kuromoji",
116
+
117
+ "char_filter": "html_strip",
118
+
119
+ "filter": [
120
+
121
+ "kuromoji_baseform",
122
+
123
+ "pos_filter",
124
+
125
+ "greek_lowercase_filter",
126
+
127
+ "cjk_width",
128
+
129
+ "synonym_filter"
130
+
131
+ ]
132
+
133
+ },
134
+
135
+ "ngram_analyzer": {
136
+
137
+ "tokenizer": "ngram_tokenizer",
138
+
139
+ "filter": [
140
+
141
+ "greek_lowercase_filter",
142
+
143
+ "cjk_width"
144
+
145
+ ]
146
+
147
+ }
148
+
149
+ }
150
+
151
+ }
152
+
153
+ },
154
+
155
+ "mappings" : {
156
+
157
+ "realshop" : {
158
+
159
+ "_source": {
160
+
161
+ "enabled": true
162
+
163
+ },
164
+
165
+ "_all" : {
166
+
167
+ "enabled" : false,
168
+
169
+ "analyzer" : "ngram_analyzer"
170
+
171
+ },
172
+
173
+ "properties" : {
174
+
175
+ "real_shop_id" : {
176
+
177
+ "type" : "integer"
178
+
179
+ },
180
+
181
+ "shop_name" : {
182
+
183
+ "type" : "text",
184
+
185
+ "analyzer" : "ngram_analyzer"
186
+
187
+ },
188
+
189
+ "zip_code1" : {
190
+
191
+ "type" : "text",
192
+
193
+ "analyzer" : "ngram_analyzer"
194
+
195
+ },
196
+
197
+ "zip_code2" : {
198
+
199
+ "type" : "text",
200
+
201
+ "analyzer" : "ngram_analyzer"
202
+
203
+ },
204
+
205
+ "city" : {
206
+
207
+ "type" : "text",
208
+
209
+ "analyzer" : "ngram_analyzer"
210
+
211
+ },
212
+
213
+ "address1" : {
214
+
215
+ "type" : "text",
216
+
217
+ "analyzer" : "ngram_analyzer"
218
+
219
+ },
220
+
221
+ "address2" : {
222
+
223
+ "type" : "text",
224
+
225
+ "analyzer" : "ngram_analyzer"
226
+
227
+ },
228
+
229
+ "phone" : {
230
+
231
+ "type" : "text",
232
+
233
+ "analyzer" : "ngram_analyzer"
234
+
235
+ },
236
+
237
+ "mail_address" : {
238
+
239
+ "type" : "text",
240
+
241
+ "analyzer" : "ngram_analyzer"
242
+
243
+ },
244
+
245
+ "business_hours" : {
246
+
247
+ "type" : "text",
248
+
249
+ "analyzer" : "ngram_analyzer"
250
+
251
+ }
252
+
253
+ }
254
+
255
+ }
256
+
257
+ }
258
+
259
+ }
260
+
261
+ </code>
262
+
263
+
264
+
31
265
  ```
32
266
 
33
267
  エラーメッセージ