def METHOD_NAME(request):
  if not request.user.has_hue_permission(action="access", app='indexer'):
    raise PopupException(_('Missing permission.'), error_code=403)
  searcher = SolrClient(request.user)
  indexes = searcher.get_indexes()
  for index in indexes:
    index['isSelected'] = False
  return render('indexer.mako', request, {
      'is_embeddable': request.GET.get('is_embeddable', False),
      'indexes_json': json.dumps(indexes),
      'fields_json': json.dumps([field.name for field in FIELD_TYPES]),
      'operators_json': json.dumps([operator.to_dict() for operator in OPERATORS]),
      'file_types_json': json.dumps([format_.format_info() for format_ in get_file_indexable_format_types()]),
      'default_field_type': json.dumps(Field().to_dict())
  })