Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-15990

[fiware-stackoverflow] Query entities by the logical operator OR with Fiware Orion

    Details

      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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        21h 1 Backlog Manager 05/Jul/19 12:06 PM
        In Progress In Progress Answered Answered
        2h 59m 1 Backlog Manager 05/Jul/19 3:06 PM
        Answered Answered Closed Closed
        10d 9h 1 Backlog Manager 16/Jul/19 12:06 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-07-16 00:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2019-07-16 00:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        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&lt;50.
        But I only can retrieve the query by the logical operator AND:

        http:// localhost:1026/v2/entities?q=temperature>20;humidity&lt;50

        Also I try with | to separate the conditions, like this:

        http:// localhost:1026/v2/entities?q=temperature>20|humidity&lt;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&lt;50.
        But I only can retrieve the query by the logical operator AND:

        http:// localhost:1026/v2/entities?q=temperature>20;humidity&lt;50

        Also I try with | to separate the conditions, like this:

        http:// localhost:1026/v2/entities?q=temperature>20|humidity&lt;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?
        fla Fernando Lopez made changes -
        Assignee Ken Zangelin [ kzangeli ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-07-05 15:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-07-05 15:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-07-05 12:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-07-05 12:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-07-04 15:06|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-07-04 15:06|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            kzangeli Ken Zangelin
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: