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

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 text_content(%{reposted_source: reposted_source} = post) when reposted_source != nil do
    text_content(post, text_data(post.reposted_source.body))
  end
