<commit_before>module Searchable
  extend ActiveSupport::Concern

  included do
    include Elasticsearch::Model
    include Elasticsearch::Model::Callbacks
  end

  def as_indexed_json(options={})
      self.as_json(
        only: [:firstname, :lastname, :twitter, :fullname],
          methods: [:fullname, :topic_list, :bio, :main_topic],
        include: {
          medialinks: { only: [:title, :url] }
        }
      )
    end
end<commit_msg>delete redundant attribute fullname from index creation<commit_after>module Searchable
  extend ActiveSupport::Concern

  included do
    include Elasticsearch::Model
    include Elasticsearch::Model::Callbacks
  end

  def as_indexed_json(options={})
      self.as_json(
        only: [:firstname, :lastname, :twitter],
          methods: [:fullname, :topic_list, :bio, :main_topic],
        include: {
          medialinks: { only: [:title, :url] }
        }
      )
    end
end
{'fraction_non_alphanumeric': 0.11194833153928956, 'fraction_numerical': 0.0, 'mean_word_length': 2.9743589743589745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3724851', 'n_tokens_mistral': 290, 'n_tokens_neox': 285, 'n_words': 66}