as_indexed_json

in elasticsearch-model/spec/support/app/searchable.rb [50:59]


    def as_indexed_json(options={})
      {
          title: title,
          text:  text,
          categories: categories.map(&:title),
          authors:    authors.as_json(methods: [:full_name], only: [:full_name, :first_name, :last_name]),
          comments:   comments.as_json(only: [:text, :author])
      }
    end