G2Engine Searching for Entities

Version 3.x Version 2.x

Searching for Entities


searchByAttributes() retrieves entity data based on a user-specified set of entity attributes.

g2_engine.searchByAttributes(data_as_json, response_bytearray, g2_engine_flags)
  • data_as_json: (str) A JSON document with the attribute data to search for.
  • response_bytearray: (bytearray) Object to store the output of the method.
  • g2_engine_flags: (int [optional]) One or more flags used to determine response document content. Applicable flags are listed here searchByAttributes flags)
Click to expand `searchByAttributes()` example