我用head插件执行一个查询语句的时候,有时候可能这个查询语句性能有问题,导致迟迟不能返回结果。这时候如果我再执行另一个查询语句,会被阻塞吗?
我当时的查询语句是这样的:
{
"_source": [
"keywords",
"journalName",
"issn"
],
"aggs": {
"conut": {
"terms": {
"field": "keywords",
"order": {
"_count": "desc"
},
"size": 0
}
}
},
"filter": {
"and": [
{
"or": [
{
"term": {
"journalName": "journal of agricultural economics"
}
},
{
"term": {
"issn": "0021-857X"
}
}
]
},
{
"term": {
"keywords": "q12"
}
},
{
"range": {
"year": {
"from": 2012,
"include_lower": true,
"include_upper": true,
"to": 2013
}
}
}
]
}
}
不知道为什么迟迟不能返回结果,有可能跟服务器性能有关吧。如果我想终止这个查询该怎么做?
多次查询间相互不会被阻塞;你查一年的数据慢也正常啊;这个查询你终止不了的,你的查询一旦发出去了,就算你页面关掉了,ES内部的查询可能也还在执行。