Request numeric string values ​​in Orion Context Broker

I cannot request a set of string properties with a numeric value. Example:

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

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

//response
[]

I changed the attribute to keep the number, and then the request works well. Anyway, it should be possible to query for the numeric values ​​of a string, right?

EDIT

I found that the problem will be released in version 0.26

+4
source share
1 answer

As described in the problem referenced by @nespapu , NGSIv2 will provide this capability as follows:

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

However, the current version of Orion at the time of writing this (0.24.0) has not yet implemented such functionality.

: Orion 1.3.0

+1

Source: https://habr.com/ru/post/1607987/


All Articles