在 Orion Context Broker 中查询数字字符串值

Query numerical string values in Orion Context Broker

我无法查询设置有数值的字符串 属性。示例:

//entity in orion
{
    "id": "Test.2",
    "type": "Test",
    "nombre": "1"
}

//query
http://<some-ip>:<some-port>/v2/entities?type=Test&q=nombre==1

//response
[]

我更改了属性以存储数字,然后查询运行良好。无论如何,应该可以查询数字字符串值,不是吗?

编辑

我发现这个problem会在0.26

版本发布

the issue cited by @nespapu 中所述,NGSIv2 将通过以下方式允许这种可能性:

//query
http://<some-ip>:<some-port>/v2/entities?type=Test&q=nombre=='1'

但是,撰写本文时的当前 Orion 版本 (0.24.0) 尚未实现此类功能。

编辑: 自 Orion 1.3.0

起实施