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

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        mev Manuel Escriche made changes -
        HD-Enabler Orion [ 10875 ]
        HD-Chapter Data [ 10838 ]
        oriondev TID Orion Developer made changes -
        Summary FIWARE.Question.Tech.Data.OrionContextBroker. FIWARE.Question.Tech.Data.OrionContextBroker.SearchEntitiesGivenAttributesValues
        oriondev TID Orion Developer made changes -
        Summary [fiware-stackoverflow] Is it possible to run a query using Orion where the searching criteria is given by attributes value? FIWARE.Question.Tech.Data.OrionContextBroker.
        mev Manuel Escriche made changes -
        Assignee Fermín Galán [ fermin ]
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        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 ]
        backlogmanager Backlog Manager created issue -

          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: