anchor.diff:  -export([
       init/1,
       index/1,
  +    types/1,
       observe_adlib_update/2
   ]).
   
  
positive.code:         Value -> z_convert:to_binary(Value)
      end.
  
  default_config(Key, Value, Context) ->
      case m_config:get_value(?MODULE, Key, Context) of
          undefined ->
  
negative.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 from database ~s", [Priref, Database]),
  
      MappedRecord = ginger_adlib_elasticsearch_mapping:map(Record),
      case elasticsearch:put_doc(index(Context), Database, Priref, MappedRecord, Context) of
  