Algoliax v0.3.0-beta API Reference
Modules
Algoliax is wrapper for Algolia api
Usage
:index_name
: specificy the index where the object will be added on. Required:object_id
: specify the attribute used to as algolia objectID. Default:id
.:repo
: Specify an Ecto repo to be use to fecth records. Defaultnil
:preloads
: Specify preloads for a given schema. Default[]
:cursor_field
: specify the column to be used to order and go through a given table. Default:id
:prepare_object
: Specify a function of arity 2 to call after building the object. Defaultnil
:schemas
: Specify which schemas used to populate index (attributes not used), Default:[]
:algolia
: Any valid Algolia settings, using snake case or camel case. Ex: AlgoliaattributeForFaceting
can be configured with:attribute_for_faceting
On first call to Algolia, we check that the settings on Algolia are up to date.
Execute save_object(s) on temporary index to keep it synchronized with main index