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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2h 59m 1 Backlog Manager 24/Oct/15 12:04 PM
        In Progress In Progress Answered Answered
        3h 1 Backlog Manager 24/Oct/15 3:04 PM
        Answered Answered Closed Closed
        2h 59m 1 Backlog Manager 24/Oct/15 6:04 PM

          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: