0

查询语句:db.getCollection(‘t_bike_info’).find({}) 可以正确查出全部文档
db.getCollection(‘t_bike_info’).find({“vin”:””}) 根据字段查询文档, 则报错信息如下
错误信息如下:
`Error: error: {
“_t” : “OKMongoResponse”,
“ok” : 0,
“code” : 2,
“errmsg” : “Message: {\”Errors\”:[\”An invalid query has been specified with filters against path(s) excluded from indexing. Consider adding allow scan header in the request.\”]}\r\nActivityId: b74f0cad-0000-0000-0000-000000000000, Request URI: /apps/333a13a6-33c2-4ae2-b716-4d70aaa20a9b/services/9dbf92d3-f6c5-4144-8598-d1e4158aac7d/partitions/a9561c13-e449-40ae-8a5f-fc6b220e04dc/replicas/131681973256134174s, RequestStats: \r\nResponseTime: 2018-06-06T01:36:30.7603632Z, StoreReadResult: StorePhysicalAddress: rntbd://10.213.68.171:14000/apps/333a13a6-33c2-4ae2-b716-4d70aaa20a9b/services/9dbf92d3-f6c5-4144-8598-d1e4158aac7d/partitions/a9561c13-e449-40ae-8a5f-fc6b220e04dc/replicas/131681973256134174s, LSN: 102, GlobalCommittedLsn: 100, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 0, IsGone: False, IsNotFound: False, IsInvalidPartition: False, RequestCharge: 1, ItemLSN: -1, ResourceType: Document, OperationType: Query\r\n, SDK: Microsoft.Azure.Documents.Common/2.0.0.0″,
“$err” : “Message: {\”Errors\”:[\”An invalid query has been specified with filters against path(s) excluded from indexing. Consider adding allow scan header in the request.\”]}\r\nActivityId: b74f0cad-0000-0000-0000-000000000000, Request URI: /apps/333a13a6-33c2-4ae2-b716-4d70aaa20a9b/services/9dbf92d3-f6c5-4144-8598-d1e4158aac7d/partitions/a9561c13-e449-40ae-8a5f-fc6b220e04dc/replicas/131681973256134174s, RequestStats: \r\nResponseTime: 2018-06-06T01:36:30.7603632Z, StoreReadResult: StorePhysicalAddress: rntbd://10.213.68.171:14000/apps/333a13a6-33c2-4ae2-b716-4d70aaa20a9b/services/9dbf92d3-f6c5-4144-8598-d1e4158aac7d/partitions/a9561c13-e449-40ae-8a5f-fc6b220e04dc/replicas/131681973256134174s, LSN: 102, GlobalCommittedLsn: 100, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 0, IsGone: False, IsNotFound: False, IsInvalidPartition: False, RequestCharge: 1, ItemLSN: -1, ResourceType: Document, OperationType: Query\r\n, SDK: Microsoft.Azure.Documents.Common/2.0.0.0″
}
`

还请各位大神指教,这个错误是什么原因?一直都没有找的到