     }
   end
 
-  defp category_names(category_ids) when length(category_ids) == 0, do: []
-  defp category_names(category_ids) do
-    %{ids: category_ids, images: false}
-    |> Discovery.categories
-    |> Enum.map(&(&1.name))
-  end
-
   defp text_content(%{reposted_source: reposted_source} = post) when reposted_source != nil do
     text_content(post, text_data(post.reposted_source.body))
   end

defmodule Ello.Search.Post.Index do
  alias Ello.Search.Client
  alias Ello.Core.{Discovery, Repo}

  def create do
    Client.create_index(index_name(), settings())

  end

  defp assemble_author_data(author, overrides) do
    author = Repo.preload(author, :categories)
    %{
      id:                 author.id,
      created_at:         author.created_at,
