此ElasticSearch查询运行非常慢(8秒)。还有其他更快的选择吗?我尝试了许多选项,而且查询可能要花这么多秒的时间似乎令人难以置信。每当我尝试进行范围调整时,它都会一直丢失。谢谢!
{
"_source": {"includes": ["sample.id*"]},
"query": {
"filtered": {
"query": { "match_all": {} },
"filter": {
"nested": {
"path": "sample.covered_region",
"query": {
"filtered": {
"query": {
"term": {"sample.covered_region.chr": "chr10"}
},
"filter": {
"bool": {
"must": [
{
"range": {
"sample.covered_region.start": {
"lte": "87713311"
}
}
},
{
"range": {
"sample.covered_region.end": {
"gte": "87713311"
}
}
}
]
}
}
}
}
}
}
}
}
}