Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This will specify all the important parameters of your search. These are some of the parameters you can set:

  • AssetIds (IList<int>). A list of specific asset ID's you want to retrieve. There is method to help you set this, AssetsById(ContentReference) that will also convert the OptimizelyContentReference into an AssetID.
  • FoldersToSearch (IList<ContentReference>). If this is set, only assets in those folders will be searched.
  • AssetTypes (IList<int>). A list of Asset Type ID's. If this is set, only assets of those types will be searched.
  • CropName (String). The name (or partial name) of a specific cropping. If this is set, only those crops will be returned.
  • Sort (string). The sorting scheme to use.
  • FreeText (string). A free text search query. By default this will do a free text search against the title, description, keywords and note field - but it can of course be configured.
  • OptionalFilters Facets (Dictionary<string,string>List<FacetRequest>). Any additional fields to filter for. For this to work, the custom filter should have been added to the DAM Center search as an input parameter. Read more: DFO 4.0.0 - 6 Customizing input and output metadata
  • Limit (int). How many assets to return.
  • Page (int). The page of assets to start from. Starts at 1.
  • QueryCacheDuraction (TimeSpan). The timespan to cache the results for. This is very important in order to ensure decent performance on your site and DAM Center. This can also be set through the method CacheFor.

...

If you require the generated IContent objects to have a different 'Parent' property than the default (which is the Digizuite Content Providers entry point), you can specify it in an optional parameter. This can be useful if you want the objects to be listed below a certain folder for example.The same Search method can also be called with a string query instead, which is in turn parsed to AssetQueryParameters as described below.

Figuring out which values to use for Crops, Sorting and Asset Types

...