driebit / ginger

Ginger: awesome semantic CMS built on Zotonic
http://ginger.nl
Apache License 2.0
29 stars 9 forks source link

Elasticsearch2 Adlib support #716

Closed mworrell closed 1 year ago

mworrell commented 1 year ago

Add support for mod_elasticsearch2 to the Adlib/collection modules.

In ES7+ the _type is removed, as we used it for the Adlib database reference when storing documents we now have to combine the type and priref of a record to make an unique document _id (as multiple databases can have the same priref).

The filter collection_object_url can now be used to make collection_object urls, this instead of manually combining the type and id in the template (or Erlang code).

See also: https://github.com/driebit/mod_elasticsearch2/pull/5