Hello!
My situation is:
- Elasticsearch 1.7.3 (didn't migrate to new version cause of complexity of app modifications but it's already planned)
- Much indices on different nodes (through tribe node)
- Each index name has structure like
index_type_prefilter1_prefilter2 -
prefilter2can be made on level of objects properties whileprefilter1can't
I need to search objects that satisfy several conditions like:
all objects which are prefilter_1 in [x1,x2] and `prefilter_2 in [y1,y2,y3]
I don't want to search through all indices (there are many of them, so dropping most will greatly affect the speed) so I prepared list of indices:
[
"type_x1_y1", "type_x1_y2", "type_x1_y3",
"type_x2_y1", "type_x2_y2", "type_x2_y3",
]
So the problem is when I try to execute request to all that indices (aprox. 200) I got "curl: (52) Empty reply from server" and in my opinion the problem is exactly in indices count in request cause the same request with less indices returned correct response.
curl -XPOST 'http://127.0.0.1:9200/**indices_list**/objects/_search?ignore_unavailable=true' -d '{"query":{"bool":{"must":{"term":{"79":"300"}}}},"size":"10"}'`
I can't check this situation on last version of elasticsearch.
It'll be great if I can use regex in indices (I know about '*' and '-') smth like type_[x1,x2]_[y1,y2,y3].
I see few solutions to overcome this:
- Decrease indices count with mask like
type_x1_*,type_x2_*and filter by second property in request, but where is slightly possibility that someday properties count became too big. - Divide request into several by indices and then merge the responses.
Do anyone know about this problem? Maybe there are some quantity limits, request length or something else? Thx.