nodes: 0, module; 1, function_definition; 2, function_name:reindex_sortable_title; 3, parameters; 4, block; 5, identifier:portal; 6, expression_statement; 7, expression_statement; 8, for_statement; 9, comment:"""Reindex sortable_title from some catalogs
      """; 10, assignment; 11, identifier:catalog_name; 12, identifier:catalogs; 13, block; 14, identifier:catalogs; 15, list; 16, expression_statement; 17, expression_statement; 18, expression_statement; 19, expression_statement; 20, expression_statement; 21, string:"bika_catalog"; 22, string:"bika_setup_catalog"; 23, string:"portal_catalog"; 24, call; 25, assignment; 26, assignment; 27, call; 28, call; 29, attribute; 30, argument_list; 31, identifier:handler; 32, call; 33, identifier:catalog; 34, call; 35, attribute; 36, argument_list; 37, identifier:commit_transaction; 38, argument_list; 39, identifier:logger; 40, identifier:info; 41, call; 42, identifier:ZLogHandler; 43, argument_list; 44, attribute; 45, argument_list; 46, identifier:catalog; 47, identifier:reindexIndex; 48, string:"sortable_title"; 49, None; 50, keyword_argument; 51, identifier:portal; 52, attribute; 53, argument_list; 54, keyword_argument; 55, identifier:api; 56, identifier:get_tool; 57, identifier:catalog_name; 58, identifier:pghandler; 59, identifier:handler; 60, string:"Reindexing sortable_title for {} ..."; 61, identifier:format; 62, identifier:catalog_name; 63, identifier:steps; 64, integer:100
code: def reindex_sortable_title(portal):
      """Reindex sortable_title from some catalogs
      """
      catalogs = [
          "bika_catalog",
          "bika_setup_catalog",
          "portal_catalog",
      ]
      for catalog_name in catalogs:
          logger.info("Reindexing sortable_title for {} ...".format(catalog_name))
          handler = ZLogHandler(steps=100)
          catalog = api.get_tool(catalog_name)
          catalog.reindexIndex("sortable_title", None, pghandler=handler)
          commit_transaction(portal)