code: def update_ar_listing_catalog(portal):
      
      cat_id = CATALOG_ANALYSIS_REQUEST_LISTING
  
      catalog = api.get_tool(cat_id)
  
      logger.info("Updating Indexes/Metadata of Catalog '{}'".format(cat_id))
  
      indexes_to_add = [
          # name, attribute, metatype
          ("getClientID", "getClientID", "FieldIndex"),
          ("is_active", "is_active", "BooleanIndex"),
          ("is_received", "is_received", "BooleanIndex"),
      ]
  
      metadata_to_add = [
          "getClientID",
      ]
  
      for index in indexes_to_add:
          add_index(portal, cat_id, *index)
  
      for metadata in metadata_to_add:
          refresh = metadata not in catalog.schema()
          add_metadata(portal, cat_id, metadata, refresh_catalog=refresh)
docs: Add Indexes/Metadata to bika_catalog_analysisrequest_listing