Limit Search to Specific Fields

All searchable fields are searched by default unless ?searchFields= querystring is specified.

By adding a ?searchFields= querystring you can limit your search text that you provided in ?search= to specific set of fields.

GET /assets?search=pyramid&searchFields=title,fileName
will return all assets that contain 'pyramid' in the title or the file name.

Supported Search Fields

The following are currently supported and can be used in ?searchFields= querystring: 

  • categoryIds
  • category or categories
  • comment or comments
  • description
  • fileName
  • keyword or keywords
  • title
  • attributes
  • cognitiveColors
  • cognitiveTextInImage
  • cognitiveTags