Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 04-07-2019 at 13:07
Please, ANSWER this question AT https://stackoverflow.com/questions/56886734/query-entities-by-the-logical-operator-or-with-fiware-orion
Question:
Query entities by the logical operator OR with Fiware Orion
Description:
I dont be able to retrieve entities form Orion querys with 2 conditions by the logical operator OR.
For example, if I want to retrieve the entities that have temperature>20 OR humidity<50.
But I only can retrieve the query by the logical operator AND:
http:// localhost:1026/v2/entities?q=temperature>20;humidity<50
Also I try with | to separate the conditions, like this:
http:// localhost:1026/v2/entities?q=temperature>20|humidity<50
But gived me the next error:
{ "error": "BadRequest", "description": "forbidden characters in String Filter" }How I could to retrieve queries to Orion by te logical operator OR?
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Assignee | Ken Zangelin [ kzangeli ] |
HD-Enabler | Orion [ 10875 ] | |
Description |
Created question in FIWARE Q/A platform on 04-07-2019 at 13:07 {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/56886734/query-entities-by-the-logical-operator-or-with-fiware-orion +Question:+ Query entities by the logical operator OR with Fiware Orion +Description:+ I dont be able to retrieve entities form Orion querys with 2 conditions by the logical operator OR. For example, if I want to retrieve the entities that have temperature>20 OR humidity<50. But I only can retrieve the query by the logical operator AND: http:// localhost:1026/v2/entities?q=temperature>20;humidity<50 Also I try with | to separate the conditions, like this: http:// localhost:1026/v2/entities?q=temperature>20|humidity<50 But gived me the next error: { "error": "BadRequest", "description": "forbidden characters in String Filter" } How I could to retrieve queries to Orion by te logical operator OR? |
Created question in FIWARE Q/A platform on 04-07-2019 at 13:07
{color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/56886734/query-entities-by-the-logical-operator-or-with-fiware-orion +Question:+ Query entities by the logical operator OR with Fiware Orion +Description:+ I dont be able to retrieve entities form Orion querys with 2 conditions by the logical operator OR. For example, if I want to retrieve the entities that have temperature>20 OR humidity<50. But I only can retrieve the query by the logical operator AND: http:// localhost:1026/v2/entities?q=temperature>20;humidity<50 Also I try with | to separate the conditions, like this: http:// localhost:1026/v2/entities?q=temperature>20|humidity<50 But gived me the next error: { "error": "BadRequest", "description": "forbidden characters in String Filter" } How I could to retrieve queries to Orion by te logical operator OR? |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Fix Version/s | 2021 [ 12600 ] |