the doc is like this:
{
“categories”: [
“cat01”,
“cat02”,
“cat03”
],
“mvid”: “mv_01”,
“name”: “LIUKEHONG_Movie 01”,
“objid”: “mv_01”,
“ts”: 1465658900766,
“type”: “mv”
}
and I created index like this:
CREATE INDEX mv_category ON default( DISTINCT ARRAY cat FOR cat IN categories END) WHERE type = “mv” USING GSI;
then I made a query like this several times:
cbq> SELECT mv.mvid, mv.name FROM zop AS mv WHERE mv.type=“mv” AND ANY cat IN mv.categories SATISFIES cat = “cat02” END ;
occasionally, I could get the result as expected as follows:
{
“requestID”: “f8c94f64-b4cf-40ee-bcf8-cced10225ab9”,
“signature”: {
“mvid”: “json”,
“name”: “json”
},
“results”: [
{
“mvid”: “mv_01”,
“name”: “LIUKEHONG_Movie 01”
}
],
“status”: “success”,
“metrics”: {
“elapsedTime”: “52.777861ms”,
“executionTime”: “52.725476ms”,
“resultCount”: 1,
“resultSize”: 81
}
}
BUT, most of time, I got error says:
{
“requestID”: “64ab450f-5b9a-450a-9582-ed1bf8fb6d80”,
“signature”: {
“mvid”: “json”,
“name”: “json”
},
“results”: [
],
“errors”: [
{
“code”: 5000,
“msg”: “dial tcp 127.0.0.1:9101: connection refused from 127.0.0.1:9101 - cause: dial tcp 127.0.0.1:9101: connection refused from 127.0.0.1:9101”
},
{
“code”: 5000,
“msg”: “dial tcp 127.0.0.1:9101: connection refused from 127.0.0.1:9101 - cause: dial tcp 127.0.0.1:9101: connection refused from 127.0.0.1:9101”
}
],
“status”: “errors”,
“metrics”: {
“elapsedTime”: “36.651013ms”,
“executionTime”: “36.594581ms”,
“resultCount”: 0,
“resultSize”: 0,
“errorCount”: 2
}
}
How to get rid of it? thanks in advance.