Package com.thingworx.resources.queries
Class Searcher
- java.lang.Object
-
- All Implemented Interfaces:
IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<java.lang.String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,java.io.Serializable
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class Searcher extends Resource
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECT
-
Fields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description Searcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InfoTable
FindDataTagTerm(java.lang.String term, java.lang.Double maxItems)
Service Category: Queries Service Description: Search data tag index for matches based on a term.InfoTable
FindModelTagTerm(java.lang.String term, java.lang.Double maxItems)
Service Category: Queries Service Description: Search model tag index for matches based on a term.InfoTable
SearchAll(java.lang.String searchExpression, TagCollection dataTags, TagCollection modelTags, org.json.JSONObject types, java.lang.Double maxItems, java.lang.Double maxSearchItems)
Service Category: Queries Service Description: Search everything matches based on a term.InfoTable
SearchCollaboration(java.lang.String searchExpression, TagCollection dataTags, org.json.JSONObject names, org.json.JSONObject types, TagCollection modelTags, TagCollection sourceTags, org.json.JSONObject sources, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Double maxItems, java.lang.Double maxSearchItems)
Service Category: Queries Service Description: Retrieve a list of all collaboration entries filtered by keyword query and optional date range.InfoTable
SearchData(java.lang.String searchExpression, TagCollection dataTags, org.json.JSONObject dataTypes, org.json.JSONObject names, TagCollection modelTags, org.json.JSONObject sources, TagCollection sourceTags, org.json.JSONObject dataShapes, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Double maxItems, java.lang.Double maxSearchItems)
Service Category: Queries Service Description: Search everything matches based on a term.InfoTable
SearchDataTags(TagCollection tags, org.json.JSONObject types, java.lang.Double maxItems)
Service Category: Queries Service Description: Search data tag index for matches.InfoTable
SearchDataTagTerm(java.lang.String term, org.json.JSONObject types, org.json.JSONObject names, java.lang.Double maxItems)
Service Category: Queries Service Description: Search data tag index for matches based on a term.InfoTable
SearchMashups(java.lang.String searchExpression, TagCollection modelTags, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.Double maxItems, java.lang.Double maxSearchItems)
Service Category: Queries Service Description: Search mashup matches based on a term.InfoTable
SearchModelEntities(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.Double maxItems, java.lang.Double maxSearchItems)
Service Category: Queries Service Description: Retrieve a list of all model entities filtered by keyword query.InfoTable
SearchModelEntitiesWithRestrictions(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.Double maxItems, java.lang.Double maxSearchItems)
Service Category: Queries Service Description: Retrieve a list of all model entities that are SQUEAL friendly.InfoTable
SearchModelTags(TagCollection tags, org.json.JSONObject types, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.Double maxItems)
Service Category: Queries Service Description: Search model tag index for matches.InfoTable
SearchModelTagTerm(java.lang.String term, org.json.JSONObject types, org.json.JSONObject names, java.lang.Double maxItems)
Service Category: Queries Service Description: Search model tag index for matches based on a term.InfoTable
SearchPeople(java.lang.String searchExpression, TagCollection modelTags, org.json.JSONObject query, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.Double maxItems, java.lang.Double maxSearchItems)
Service Category: Queries Service Description: Search people matches based on a term.InfoTable
SearchTags(java.lang.String searchExpression, org.json.JSONObject types, org.json.JSONObject names, java.lang.Double maxItems, java.lang.Double maxSearchItems)
Service Category: Queries Service Description: Search vocabularies matches based on a term.InfoTable
SearchThings(java.lang.String searchExpression, TagCollection modelTags, org.json.JSONObject networks, org.json.JSONObject types, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.String identifierSearchExpression, org.json.JSONObject query, java.lang.Double maxItems, java.lang.Double maxSearchItems)
Service Category: Queries Service Description: Search thing matches based on a term.InfoTable
SearchThingsByShape(java.lang.String thingShape, java.lang.Double maxItems, TagCollection tags, java.lang.String nameMask, org.json.JSONObject query)
Service Category: Queries Service Description: Return a list of all the things that implement this shape and their data.InfoTable
SearchThingsByTemplate(java.lang.String thingTemplate, java.lang.Double maxItems, TagCollection tags, java.lang.String nameMask, org.json.JSONObject query)
Service Category: Queries Service Description: Return a list of all the things that implement this template and their data.InfoTable
SearchThingsByTemplateV2(java.lang.String thingTemplate, java.lang.Double maxItems, TagCollection tags, java.lang.String nameMask, org.json.JSONObject query)
Service Category: Queries Service Description: Return a list of all the things that implement this template and their data including accessModifier, deprecated information.InfoTable
SearchThingsByTemplateWithPersistent(java.lang.String thingTemplate, java.lang.Double maxItems, java.lang.String searchText)
Service Category: Queries Service Description: Return a list of all the things that implement this template, including transient Things.InfoTable
SearchThingsByTemplateWithPersistentV2(java.lang.String thingTemplate, java.lang.Double maxItems, java.lang.String searchText)
Service Category: Queries Service Description: Return a list of all the things that implement this template, including transient Things and their data including accessModifier, deprecated and namespace information.InfoTable
SearchVocabularyTerms(java.lang.String searchExpression, java.lang.String type, org.json.JSONObject names, java.lang.Double maxItems)
Deprecated.InfoTable
SearchVocabularyTerms(java.lang.String searchExpression, java.lang.String type, org.json.JSONObject names, java.lang.Double maxItems, java.lang.Double maxSearchItems)
Service Category: Queries Service Description: Search vocabulary terms.InfoTable
SpotlightSearch(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Boolean searchDescriptions, java.lang.Boolean withPermissions, java.lang.String sortBy, java.lang.Boolean isAscending, java.lang.Double maxItems, java.lang.Double maxSearchItems)
Deprecated.InfoTable
SpotlightSearch(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Boolean searchDescriptions, java.lang.Boolean withPermissions, java.lang.String sortBy, java.lang.Boolean isAscending, java.lang.Double maxItems, java.lang.Double maxSearchItems, java.lang.String projectName)
Deprecated.InfoTable
SpotlightSearch(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Boolean searchDescriptions, java.lang.Boolean withPermissions, java.lang.String sortBy, java.lang.Boolean isAscending, java.lang.Double maxItems, java.lang.Double maxSearchItems, java.lang.String projectName, java.lang.Boolean includeInheritedThingShapes)
Service Category: Queries Service Description: Spotlight search.InfoTable
SpotlightSearchV2(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Boolean searchDescriptions, java.lang.Boolean withPermissions, java.lang.String sortBy, java.lang.Boolean isAscending, java.lang.Double maxItems, java.lang.Double maxSearchItems, java.lang.String projectName, java.lang.String namespace, java.lang.Boolean includeInheritedThingShapes)
Service Category: Queries Service Description: Spotlight search V2.-
Methods inherited from class com.thingworx.resources.Resource
getEntityType
-
Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
-
Methods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, ListDeprecatedUsage, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, UpdateProjectDependencies, validateConfiguration
-
Methods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransient
-
Methods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.thingworx.types.INamedObject
getDescription, getName
-
Methods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasID
-
Methods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getName
-
Methods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
-
-
-
Method Detail
-
SearchAll
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchAll(java.lang.String searchExpression, TagCollection dataTags, TagCollection modelTags, org.json.JSONObject types, java.lang.Double maxItems, java.lang.Double maxSearchItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search everything matches based on a term.
- Parameters:
searchExpression
- Search expression - STRINGdataTags
- Tags - TAGSmodelTags
- Source Tags - TAGStypes
- Entity types - JSONmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:SearchResults}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchVocabularyTerms
@ThingworxExtensionApiMethod(since={6,6}) @Deprecated public InfoTable SearchVocabularyTerms(java.lang.String searchExpression, java.lang.String type, org.json.JSONObject names, java.lang.Double maxItems) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
- If an error occurs
-
SearchVocabularyTerms
@ThingworxExtensionApiMethod(since={8,5}) public InfoTable SearchVocabularyTerms(java.lang.String searchExpression, java.lang.String type, org.json.JSONObject names, java.lang.Double maxItems, java.lang.Double maxSearchItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search vocabulary terms.
- Parameters:
searchExpression
- Search expression - STRINGtype
- Entity type (DataTags, ModelTags) - STRINGnames
- Vocabulary names - JSONmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:SearchResults}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchTags
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchTags(java.lang.String searchExpression, org.json.JSONObject types, org.json.JSONObject names, java.lang.Double maxItems, java.lang.Double maxSearchItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search vocabularies matches based on a term.
- Parameters:
searchExpression
- Search expression - STRINGtypes
- Entity types (DataTags, ModelTags) - JSONnames
- Vocabulary names - JSONmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:SearchResults}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchData
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchData(java.lang.String searchExpression, TagCollection dataTags, org.json.JSONObject dataTypes, org.json.JSONObject names, TagCollection modelTags, org.json.JSONObject sources, TagCollection sourceTags, org.json.JSONObject dataShapes, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Double maxItems, java.lang.Double maxSearchItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search everything matches based on a term.
- Parameters:
searchExpression
- Search expression - STRINGdataTags
- Tags - TAGSdataTypes
- Data types - JSONnames
- Container names - JSONmodelTags
- Model Tags - TAGSsources
- Sources - JSONsourceTags
- Source Tags - TAGSdataShapes
- Data shapes - JSONstartDate
- Start time - DATETIMEendDate
- End time - DATETIMEmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:SearchResults}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchCollaboration
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchCollaboration(java.lang.String searchExpression, TagCollection dataTags, org.json.JSONObject names, org.json.JSONObject types, TagCollection modelTags, TagCollection sourceTags, org.json.JSONObject sources, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Double maxItems, java.lang.Double maxSearchItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Retrieve a list of all collaboration entries filtered by keyword query and optional date range.
- Parameters:
searchExpression
- Search expression - STRINGdataTags
- Tags - TAGSnames
- Entity names - JSONtypes
- Entity types - JSONmodelTags
- Model Tags - TAGSsourceTags
- Source Tags - TAGSsources
- Sources - JSONstartDate
- Start time - DATETIMEendDate
- End time - DATETIMEmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBER- Returns:
- result Matching entries - INFOTABLE - Aspects {dataShape:SearchResults}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchThings
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchThings(java.lang.String searchExpression, TagCollection modelTags, org.json.JSONObject networks, org.json.JSONObject types, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.String identifierSearchExpression, org.json.JSONObject query, java.lang.Double maxItems, java.lang.Double maxSearchItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search thing matches based on a term.
- Parameters:
searchExpression
- Search expression - STRINGmodelTags
- Model Tags - TAGSnetworks
- Networks - JSONtypes
- Entity types - JSONthingTemplates
- Thing templates - JSONthingShapes
- Thing shapes - JSONaspects
- Aspects to match - JSONexcludedAspects
- Aspects to exclude - JSONidentifierSearchExpression
- Identifier search expression - STRINGquery
- Value-based query expression - QUERYmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:SearchResults}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchMashups
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchMashups(java.lang.String searchExpression, TagCollection modelTags, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.Double maxItems, java.lang.Double maxSearchItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search mashup matches based on a term.
- Parameters:
searchExpression
- Search expression - STRINGmodelTags
- Tags - TAGSthingTemplates
- Thing templates - JSONthingShapes
- Thing shapes - JSONaspects
- Aspects to match - JSONexcludedAspects
- Aspects to exclude - JSONmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:SearchResults}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchPeople
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchPeople(java.lang.String searchExpression, TagCollection modelTags, org.json.JSONObject query, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.Double maxItems, java.lang.Double maxSearchItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search people matches based on a term.
- Parameters:
searchExpression
- Search expression - STRINGmodelTags
- Tags - TAGSquery
- Query expression - QUERYaspects
- Aspects to match - JSONexcludedAspects
- Aspects to exclude - JSONmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:SearchResults}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchModelTags
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchModelTags(TagCollection tags, org.json.JSONObject types, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.Double maxItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search model tag index for matches.
- Parameters:
tags
- Tags to search - TAGStypes
- Entity types - JSONaspects
- Aspects to match - JSONexcludedAspects
- Aspects to exclude - JSONmaxItems
- Maximum search results - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:EntityDescriptor}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchDataTags
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchDataTags(TagCollection tags, org.json.JSONObject types, java.lang.Double maxItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search data tag index for matches.
- Parameters:
tags
- Tags to search - TAGStypes
- Entity types - JSONmaxItems
- Maximum search results - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:EntityDescriptor}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchModelTagTerm
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchModelTagTerm(java.lang.String term, org.json.JSONObject types, org.json.JSONObject names, java.lang.Double maxItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search model tag index for matches based on a term.
- Parameters:
term
- Term to search - STRINGtypes
- Entity types - JSONnames
- Vocabulary names - JSONmaxItems
- Maximum search results - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:EntityDescriptor}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchDataTagTerm
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchDataTagTerm(java.lang.String term, org.json.JSONObject types, org.json.JSONObject names, java.lang.Double maxItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search data tag index for matches based on a term.
- Parameters:
term
- Term to search - STRINGtypes
- Entity types - JSONnames
- Vocabulary names - JSONmaxItems
- Maximum search results - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:EntityDescriptor}
- Throws:
java.lang.Exception
- If an error occurs
-
FindModelTagTerm
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable FindModelTagTerm(java.lang.String term, java.lang.Double maxItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search model tag index for matches based on a term.
- Parameters:
term
- Term to search - STRINGmaxItems
- Maximum search results - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:VocabularyTermList}
- Throws:
java.lang.Exception
- If an error occurs
-
FindDataTagTerm
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable FindDataTagTerm(java.lang.String term, java.lang.Double maxItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Search data tag index for matches based on a term.
- Parameters:
term
- Term to search - STRINGmaxItems
- Maximum search results - NUMBER- Returns:
- result Search Results - INFOTABLE - Aspects {dataShape:VocabularyTermList}
- Throws:
java.lang.Exception
- If an error occurs
-
SpotlightSearch
@ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={7,1}) @Deprecated public InfoTable SpotlightSearch(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Boolean searchDescriptions, java.lang.Boolean withPermissions, java.lang.String sortBy, java.lang.Boolean isAscending, java.lang.Double maxItems, java.lang.Double maxSearchItems) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
- If an error occurs
-
SpotlightSearch
@Deprecated @ThingworxExtensionApiMethod(since={7,1}, deprecatedSince={9,4}) public InfoTable SpotlightSearch(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Boolean searchDescriptions, java.lang.Boolean withPermissions, java.lang.String sortBy, java.lang.Boolean isAscending, java.lang.Double maxItems, java.lang.Double maxSearchItems, java.lang.String projectName) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
- If an error occurs
Legacy spotlightSearch API, now calls the new API with a null includeInheritedThingShapes flag.
-
SpotlightSearch
@ThingworxExtensionApiMethod(since={9,4}) public InfoTable SpotlightSearch(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Boolean searchDescriptions, java.lang.Boolean withPermissions, java.lang.String sortBy, java.lang.Boolean isAscending, java.lang.Double maxItems, java.lang.Double maxSearchItems, java.lang.String projectName, java.lang.Boolean includeInheritedThingShapes) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Spotlight search.
- Parameters:
searchExpression
- Search expression - STRINGtags
- Tags - TAGStypes
- Entity types - JSONthingTemplates
- Thing templates - JSONthingShapes
- Thing shapes - JSONaspects
- Aspects to match - JSONexcludedAspects
- Aspects to exclude - JSONstartDate
- Only return entities modified since this date - DATETIMEendDate
- Only return entities modified before this date - DATETIMEsearchDescriptions
- Search descriptions in addition to names - BOOLEANwithPermissions
- Include user permissions - BOOLEANsortBy
- Sort mode - STRINGisAscending
- Ascending search - BOOLEANmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBERprojectName
- Project Name - PROJECTNAMEincludeInheritedThingShapes
- Consider ThingShapes at all levels in the inheritance heirarchy while selecting Things/templates - BOOLEAN- Returns:
- result Matching entries - INFOTABLE - Aspects {dataShape:SpotlightSearch}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchModelEntities
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchModelEntities(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.Double maxItems, java.lang.Double maxSearchItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Retrieve a list of all model entities filtered by keyword query.
- Parameters:
searchExpression
- Search expression - STRINGtags
- Tags - TAGStypes
- Entity types - JSONaspects
- Aspects to match - JSONexcludedAspects
- Aspects to exclude - JSONmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBER- Returns:
- result Matching entries - INFOTABLE - Aspects {dataShape:EntityDescriptor}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchThingsByShape
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchThingsByShape(java.lang.String thingShape, java.lang.Double maxItems, TagCollection tags, java.lang.String nameMask, org.json.JSONObject query) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Return a list of all the things that implement this shape and their data.
- Parameters:
thingShape
- Thing shape - THINGSHAPENAMEmaxItems
- Maximum number of items to return - NUMBERtags
- Tags to search on - TAGSnameMask
- Name pattern - STRINGquery
- Query definition - QUERY- Returns:
- result Implementing Things With Data - INFOTABLE - Aspects {dataShape:RootEntityList}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchThingsByTemplate
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchThingsByTemplate(java.lang.String thingTemplate, java.lang.Double maxItems, TagCollection tags, java.lang.String nameMask, org.json.JSONObject query) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Return a list of all the things that implement this template and their data.
- Parameters:
thingTemplate
- Thing template - THINGTEMPLATENAMEmaxItems
- Maximum number of items to return - NUMBERtags
- Tags to search on - TAGSnameMask
- Name pattern - STRINGquery
- Query definition - QUERY- Returns:
- result Implementing Things With Data - INFOTABLE - Aspects {dataShape:RootEntityList}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchThingsByTemplateV2
@ThingworxExtensionApiMethod(since={9,4}) public InfoTable SearchThingsByTemplateV2(java.lang.String thingTemplate, java.lang.Double maxItems, TagCollection tags, java.lang.String nameMask, org.json.JSONObject query) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Return a list of all the things that implement this template and their data including accessModifier, deprecated information.
- Parameters:
thingTemplate
- Thing template - THINGTEMPLATENAMEmaxItems
- Maximum number of items to return - NUMBERtags
- Tags to search on - TAGSnameMask
- Name pattern - STRINGquery
- Query definition - QUERY- Returns:
- result Implementing Things with data including accessModifier and deprecated information - INFOTABLE - Aspects {dataShape:RootEntityListV2}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchThingsByTemplateWithPersistent
@ThingworxExtensionApiMethod(since={8,0}) public InfoTable SearchThingsByTemplateWithPersistent(java.lang.String thingTemplate, java.lang.Double maxItems, java.lang.String searchText) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Return a list of all the things that implement this template, including transient Things.
- Parameters:
thingTemplate
- Thing template - THINGTEMPLATENAMEmaxItems
- Maximum number of items to return - NUMBERsearchText
- Name pattern - STRING- Returns:
- result Implementing Things including isPersistent flag - INFOTABLE - Aspects {dataShape:SpotlightSearchWithPersistent}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchThingsByTemplateWithPersistentV2
@ThingworxExtensionApiMethod(since={9,4}) public InfoTable SearchThingsByTemplateWithPersistentV2(java.lang.String thingTemplate, java.lang.Double maxItems, java.lang.String searchText) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Return a list of all the things that implement this template, including transient Things and their data including accessModifier, deprecated and namespace information.
- Parameters:
thingTemplate
- Thing template - THINGTEMPLATENAMEmaxItems
- Maximum number of items to return - NUMBERsearchText
- Name pattern - STRING- Returns:
- result Implementing Things including isPersistent flag , namespace , accessModifier and deprecated information - INFOTABLE - Aspects {dataShape:SpotlightSearchWithPersistentV2}
- Throws:
java.lang.Exception
- If an error occurs
-
SearchModelEntitiesWithRestrictions
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchModelEntitiesWithRestrictions(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, java.lang.Double maxItems, java.lang.Double maxSearchItems) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Retrieve a list of all model entities that are SQUEAL friendly.
- Parameters:
searchExpression
- Search expression - STRINGtags
- Tags - TAGStypes
- Entity types - JSONaspects
- Aspects to match - JSONexcludedAspects
- Aspects to exclude - JSONmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBER- Returns:
- result Matching entries - INFOTABLE - Aspects {dataShape:EntityDescriptor}
- Throws:
java.lang.Exception
- If an error occurs
-
SpotlightSearchV2
@ThingworxExtensionApiMethod(since={9,4}) public InfoTable SpotlightSearchV2(java.lang.String searchExpression, TagCollection tags, org.json.JSONObject types, org.json.JSONObject thingTemplates, org.json.JSONObject thingShapes, org.json.JSONObject aspects, org.json.JSONObject excludedAspects, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Boolean searchDescriptions, java.lang.Boolean withPermissions, java.lang.String sortBy, java.lang.Boolean isAscending, java.lang.Double maxItems, java.lang.Double maxSearchItems, java.lang.String projectName, java.lang.String namespace, java.lang.Boolean includeInheritedThingShapes) throws java.lang.Exception
- Service Category:
- Queries
- Service Description:
- Spotlight search V2.
- Parameters:
searchExpression
- Search expression - STRINGtags
- Tags - TAGStypes
- Entity types - JSONthingTemplates
- Thing templates - JSONthingShapes
- Thing shapes - JSONaspects
- Aspects to match - JSONexcludedAspects
- Aspects to exclude - JSONstartDate
- Only return entities modified since this date - DATETIMEendDate
- Only return entities modified before this date - DATETIMEsearchDescriptions
- Search descriptions in addition to names - BOOLEANwithPermissions
- Include user permissions - BOOLEANsortBy
- Sort mode - STRINGisAscending
- Ascending search - BOOLEANmaxItems
- Maximum number of items to return - NUMBERmaxSearchItems
- Maximum number of items to search - NUMBERprojectName
- Project Name - PROJECTNAMEnamespace
- Namespace to match - STRINGincludeInheritedThingShapes
- Consider ThingShapes at all levels in the inheritance heirarchy while selecting Things/templates - BOOLEAN- Returns:
- result Matching entries - INFOTABLE - Aspects {dataShape:SpotlightSearchV2}
- Throws:
java.lang.Exception
- If an error occurs
-
-