code: def get_search_index_for(catalog):
      
      searchable_text_index = "SearchableText"
      listing_searchable_text_index = "listing_searchable_text"
  
      if catalog == CATALOG_ANALYSIS_REQUEST_LISTING:
          tool = api.get_tool(catalog)
          indexes = tool.indexes()
          if listing_searchable_text_index in indexes:
              return listing_searchable_text_index
  
      return searchable_text_index
docs: Returns the search index to query