Searches for assets can be performed by providing a combination of asset ID and name, or just by asset ID. By default, searches are configured to use both an asset’s ID and name. In environments that contain a large number of assets, search performance can be improved by searching only for asset IDs. To set the default search type, modify the FindFlexExpressionModel
component. This component uses two properties that determine how an asset search works:
defaultSearchUsesIdOnly
: When set totrue
, searches will only be performed using asset IDs. By default, this property is set tofalse
.exactSearchWithIdsOnlySearch
: This property, which is used only whendefaultSearchesUsesIdOnly
is set totrue
, identifies if asset IDs are returned only when there is an exact match. By default this property is set tofalse
, which indicates that the results will provide both asset IDs with an exact match and those that contain some portion of the ID. Setting the property totrue
will provide only those asset IDs that exactly match the ID.
The following example sets ID searches as the default search type, and only returns IDs that match the search criteria exactly:
defaultSearchUsesIdOnly=true exactSearchWithIdsOnlySearch=false