   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())

      follower_count:     0,
      is_spammer:         false,
      is_system_user:     author.is_system_user,
      is_featured_user:   Enum.any?(author.categories),
      has_avatar:         !!author.avatar,
      is_public:          author.is_public,
      category_ids:       Enum.map(author.categories, &(&1.id)),
      category_names:     Enum.map(author.categories, &(&1.name)),
      is_hireable:        author.settings.is_hireable,
      is_collaborateable: author.settings.is_collaborateable,
      location:           author.location,
