module Jekyll::Algolia::FileBrowser

def self.raw_data(file)

it will not be included in the data. It's always an empty array.
Note that even if you define tags and categories in a collection item,
def self.raw_data(file)
  data = file.data.clone
  # Remove all keys where we have a specific getter
  data.each_key do |key|
    data.delete(key) if respond_to?(key)
  end
  data.delete('excerpt')
  # Delete other keys added by Jekyll that are not in the front-matter and
  # not needed for search
  data.delete('draft')
  data.delete('ext')
  # Convert all values to a version that can be serialized to JSON
  data = Utils.jsonify(data)
  # Convert all keys to symbols
  data = Utils.keys_to_symbols(data)
  data
end