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 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

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}

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

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