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

FIWARE.Question.Tech.Data.OrionContextBroker.SearchEntitiesGivenAttributesValues

    Details

      Description

      Created question in FIWARE Q/A platform on 18-03-2015 at 13:03
      Please, ANSWER this question AT http://stackoverflow.com/questions/29122307/is-it-possible-to-run-a-query-using-orion-where-the-searching-criteria-is-given

      Question:
      Is it possible to run a query using Orion where the searching criteria is given by attributes value?

      Description:
      As I create entities in an Orion server, I can search by ID, as flat or using regular expressions:

      http://<localhost>:1026/v1/queryContext

      Content:

      {
      "entities": [

      { "type": "Sensor", "isPattern": "true", "id": "sensor_1.*" }

      ],
      "attributes": ["temperature","humidity"]
      }

      In the above example I'd get all objects of type "Sensor" whose ID starts with "sensor_1", and their attributes "temperature" and "humidity". I wonder if there is any way that would allow me to search by specific attribute value, for example to get those sensors whose humidity is over "60.2", or this selection must be done over the retrieved data queried by ID.

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-24 09:05|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-24 09:05|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-24 12:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-24 12:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-24 15:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-24 15:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-24 18:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-24 18:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: