defmodule Indexer do

  def index(documents) do
    IO.inspect documents
  end
end
defmodule Indexer do

  def index(documents) when is_list(documents) do
    for document <- documents, do: index document
  end

  def index(document) do
    IO.inspect document
  end
end
Prepare indexing each element individually
Prepare indexing each element individually

dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web