home/Knowledge Base/Tutorials/Customized search experience

Customized search experience

22 views 0 August 15, 2021

This tutorial shows you how to create a customized search experience. Our goal is to to let the default search search in field “meta_iptc_artist” only.

Your user requires an adminLevel of 4 or above.

Update the customer configuration

We want the default search to only search for meta_iptc_artist. In real life you would want to add some more fields and adjust the boosting properly. The default search configuration can be found using the getConfiguration from Misc Controller

PUT v5/customer/CUSTOMERID
{
   "searchConfiguration":{
      "mediaContainer":{
         "searchableFields":{
            "fields":[
               {
                  "field":"meta_iptc_artist",
                  "searchTypes":[
                     {
                        "type":"match_phrase",
                        "boost":1e7
                     },
                     {
                        "type":"match",
                        "boost":1e8
                     }
                  ]
               }
            ]
         }
      }
   }
}

Test your configuration

Now, create a mediacontainer and make sure to set meta_iptc_artist. Then search for that field and you should get a result with a high score value (> 1e7).

Reset the configuration

If you want to reset the configuration, send the customer.update call with searchConfiguration NULL:

PUT v5/customer/CUSTOMERID
{
   "searchConfiguration": null
}

Was this helpful?

Yes  No
Related Articles
  • How to upload via Dropsite
  • Metadata Administration
  • Import subtitles
  • Creating Mediahubs
  • Create collections with your favorites
  • Impressum
  • Copyright 2025 - AdmiralCloud AG