AssetSearch
public static class AssetSearchSearches indexed files using catalog metadata, tags, dimensions, media properties, and caller-provided paging and sorting options.
Methods
Section titled “Methods”
Execute(Options)
Section titled “Execute(Options)”public static AssetSearch.Result Execute(AssetSearch.Options opt)Executes the configured file search and returns the current result page plus total counts and diagnostics.
Parameters
| Name | Type |
|---|---|
opt |
AssetInventory.AssetSearch.Options |
Returns
AssetInventory.AssetSearch.Result
FindIndexedGuids(Options, List)
Section titled “FindIndexedGuids(Options, List)”public static HashSet<string> FindIndexedGuids(AssetSearch.Options opt, List<string> guids)Returns the subset of supplied GUIDs that already have indexed catalog records matching the search options.
Parameters
| Name | Type |
|---|---|
opt |
AssetInventory.AssetSearch.Options |
guids |
System.Collections.Generic.List{System.String} |
Returns
System.Collections.Generic.HashSet{System.String}
BuildQuery(Options)
Section titled “BuildQuery(Options)”public static AssetSearch.QueryResult BuildQuery(AssetSearch.Options opt)Builds the parameterized catalog query and post-filter plan for the supplied search options without executing it.
Parameters
| Name | Type |
|---|---|
opt |
AssetInventory.AssetSearch.Options |
Returns
AssetInventory.AssetSearch.QueryResult
IsFilterApplicable(string, string)
Section titled “IsFilterApplicable(string, string)”public static bool IsFilterApplicable(string filterName, string rawSearchType)Reports whether the selected search field supports the requested filter operator.
Parameters
| Name | Type |
|---|---|
filterName |
System.String |
rawSearchType |
System.String |
Returns
System.Boolean