Skip to content

AssetSearch

ClassAssetInventoryAssetInventory.Editor
public static class AssetSearch

Searches indexed files using catalog metadata, tags, dimensions, media properties, and caller-provided paging and sorting options.

public static Task<AssetSearch.Result> ExecuteAsync(AssetSearch.Options opt, CancellationToken cancellationToken = default)

Executes the configured file search and returns the current result page plus total counts and diagnostics.

Parameters

NameType
optAssetInventory.AssetSearch.Options
cancellationTokenSystem.Threading.CancellationToken

Returns

System.Threading.Tasks.Task{AssetInventory.AssetSearch.Result}

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

NameType
optAssetInventory.AssetSearch.Options
guidsSystem.Collections.Generic.List{System.String}

Returns

System.Collections.Generic.HashSet{System.String}

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

NameType
optAssetInventory.AssetSearch.Options

Returns

AssetInventory.AssetSearch.QueryResult

public static bool IsFilterApplicable(string filterName, string rawSearchType)

Reports whether the selected search field supports the requested filter operator.

Parameters

NameType
filterNameSystem.String
rawSearchTypeSystem.String

Returns

System.Boolean