Elastic Context
-
A very handy API handle to perform various analytical search operations across different data models of the platform
-
Platform has exposed a variety of data models to build your IoT solution effortless and elegantly. This single interface allows you to manage those entity objects.
-
Context Variable: elastic
Meta Models (Search Types)
MESSAGE | RECORD | NOTIFICATION |
DOMAIN_RECORD | SYSTEM_RECORD | GLOBAL_RECORD |
ACCESS | ALEXA | ASSET |
ASSET_GROUP | AUDIT | COMMAND |
CONNECTION_POOL | DB_METADATA | DB_TEMPLATE |
DEVICE | DEVICE_GROUP | DEVICE_MODEL |
DOMAIN | DOMAIN_ASSET_GROUP | DOMAIN_DEVICE_GROUP |
DOMAIN_USER_GROUP | DOMAIN_USER_GROUP_MEMBER | |
EVENT | EVENT_REGISTRATION | FCM |
FCM_DEVICE | FILE | FILE_PUBLIC |
FIRMWARE | GEOFENCE | GROOVY |
GROOVY_JAR | LOCATION | LOCATION_HISTORY |
OBJECT | PLUGIN | PUBLIC_GROOVY |
PUBLIC_GROOVY_JAR | PUBLIC_NOTIFICATION | LOG |
REPORTED_DEVICE | RULE_FAILURE | SCREEN |
SCREEN_VERSION | SCREEN_IMPORTED | SMS |
SQL_TABLE | SQL_TEMPLATE | USER |
USER_ASSET_GROUP | USER_DEVICE_GROUP | USER_GROUP |
VERTICAL | VERTICAL_IMPORTED | VERTICAL_PUBLISHED |
VERTICAL_VERSION | VOICE | WIDGET |
WIDGET_IMPORTED | WIDGET_PUBLISHED | WIDGET_VERSION |
BILLING | CONTACT | INVOICE |
BILLING_TEMPLATE | SENT_COMMAND | ROLE |
USER_ROLE | ASSET_GROUP_MEMBER | DEVICE_GROUP_MEMBER |
DOMAIN_ASSET_GROUP_MEMBER | DOMAIN_DEVICE_GROUP_MEMBER | USER_ASSET_GROUP_MEMBER |
USER_DEVICE_GROUP_MEMBER | USER_GROUP_MEMBER | ORGANIZATION |
ORGANIZATION_ROLE | ORGANIZATION_USER_ROLE | ORGANIZATION_DEVICE |
ORGANIZATION_ASSET | ORGANIZATION_USER | ORGANIZATION_USER_DEVICE |
ORGANIZATION_USER_ASSET | PROCESS | WORKFLOW |
WORKFLOW_INSTANCE | GLOBAL_PROCESS | GLOBAL_WORKFLOW |
GLOBAL_WORKFLOW_INSTANCE | SFTP_INPUT | ORG_SFTP_INPUT |
GLOBAL_SFTP_INPUT | SYSTEM_SFTP_INPUT | MQTT_INPUT |
ORG_MQTT_INPUT | GLOBAL_MQTT_INPUT | SYSTEM_MQTT_INPUT |
UDP_INPUT | ORG_UDP_INPUT | GLOBAL_UDP_INPUT |
SYSTEM_UDP_INPUT | TCP_INPUT | ORG_TCP_INPUT |
GLOBAL_TCP_INPUT | SYSTEM_TCP_INPUT | EMAIL_INPUT |
ORG_EMAIL_INPUT | GLOBAL_EMAIL_INPUT | SYSTEM_EMAIL_INPUT |
API Interface
// Search operation
public Map<String, Object> search(String type, String query);
// Search using template operation
public Map<String, Object> search(String type, String template, Map<String,Object> params);
// Count operation
public Map<String, Object> count(String type, String query);
// Count using template operation
public Map<String, Object> count(String type, String template, Map<String,Object> params);
// Find operation
public Map<String, Object> find(String type, String query);
// Find using template operation
public Map<String, Object> find(String type, String template, Map<String,Object> params);
// Merge operation
public Map<String, Object> merge(String type, Map<String,Object> fields);
// Merge operation
public Map<String, Object> merge(String type, JSONObject jsonObj);
// Merge operation
public Map<String, Object> merge(String type, Object bean);
// Merge operation
public Map<String, Object> merge(String type, String jsonStr);
// Merge using template operation
public Map<String, Object> merge(String type, String template, Map<String,Object> params);
// Purge operation
public Map<String, Object> purge(String type, String query);
// Purge using template operation
public Map<String, Object> purge(String type, String template, Map<String,Object> params);
// Remove operation
public Map<String, Object> remove(String type, String query);
// Remove using template operation
public Map<String, Object> remove(String type, String template, Map<String,Object> params);
// Scroll operation
public Map<String, Object> scroll(String type, String query);
// Scroll using template operation
public Map<String, Object> scroll(String type, String template, Map<String,Object> params);
// List available search types
public List<String> types();
// Required for MESSAGE & RECORD types
public void setSpecId(Long specId);
// Required for MESSAGE & RECORD types
public void setSpecId(String specId);
// Requires for Merge operation
public void setEntityId(String entityId);
// Extra search path
public void setExtraPath(String extraPath);
// Extra query parameters
public void setQueryParams(Map<String, String> queryParams);
APIs Inherited From
Related REST APIs
Updated 16 days ago