anchor.diff:          Value -> z_convert:to_binary(Value)
       end.
   
  +%% @doc Get Elasticsearch types used for Adlib resources
  +-spec types(z:context()) -> [binary()].
  +types(Context) ->
  +    mod_ginger_adlib:enabled_databases(Context).
  +
   default_config(Key, Value, Context) ->
       case m_config:get_value(?MODULE, Key, Context) of
           undefined ->
  
positive.code:     default_config(index, index(Context), Context).
  
  observe_adlib_update(#adlib_update{date = _Date, database = Database, record = #{<<"priref">> := Priref} = Record}, Context) ->
      lager:info("Indexing Adlib record ~s", [Priref]),
  
      MappedRecord = ginger_adlib_elasticsearch_mapping:map(Record),
      case elasticsearch:put_doc(index(Context), Database, Priref, MappedRecord, Context) of
  
negative.code: -export([
      init/1,
      index/1,
      types/1,
      observe_adlib_update/2
  ]).
  
  