v0.10.0
New
Added the synonyms settings to the Algoliax.Indexer.
It allows you to automatically setup synonyms for your indexes when calling MyIndexer.configure_index()
If not specified or set to nil, the synonyms will not be configured.
Otherwise, the following keywords are expected, with each key having a default value:
synonyms: a list of synonym groups, as expected by Algolia. Default[]replace_existing_synonyms: Whether to replace existing synonyms. Defaulttrueforward_to_replicas: Whether to forward synonyms to replicas. Defaulttrue
You can also provide an arity-1 function (that takes the index_name) that returns the same keyword list.
If using forward_to_replicas: true, make sure not to specify synonyms on the replicas themselves to avoid conflicts/overwrites.
defmodule Global do
use Algoliax.Indexer,
index_name: :people,
object_id: :reference,
schemas: People,
algolia: [
attribute_for_faceting: ["age"],
custom_ranking: ["desc(updated_at)"]
]
synonyms: [
synonyms: [
%{
objectID: "synonym1",
type: "synonym",
synonyms: ["pants", "trousers", "slacks"],
...
},
%{
objectID: "synonym2",
...
}
],
forward_to_replicas: false,
replace_existing_synonyms: false
]
endPRs
- fix: update supported settings list by @Jordan-Kowal in #108
- feat: handle synonyms when configuring index and replicas by @Jordan-Kowal in #109
- chore: version bump to 0.10.0 and changelog update by @Jordan-Kowal in #113
Deps
- chore(deps-dev): bump ex_doc from 0.35.1 to 0.36.1 by @dependabot in #97
- chore(deps-dev): bump credo from 1.7.10 to 1.7.11 by @dependabot in #98
- chore(deps-dev): bump ex_doc from 0.36.1 to 0.37.0 by @dependabot in #100
- chore(deps-dev): bump postgrex from 0.19.3 to 0.20.0 by @dependabot in #101
- chore(deps-dev): bump ex_doc from 0.37.0 to 0.37.1 by @dependabot in #102
- chore(deps): bump hackney from 1.20.1 to 1.22.0 by @dependabot in #105
- chore(deps-dev): bump ex_doc from 0.37.1 to 0.37.2 by @dependabot in #104
- chore(deps-dev): bump plug_cowboy from 2.7.2 to 2.7.3 by @dependabot in #107
- chore(deps): bump hackney from 1.22.0 to 1.23.0 by @dependabot in #106
- fix: revert hackney back to 1.21.0 by @Jordan-Kowal in #110
- chore(deps-dev): bump ex_doc from 0.37.2 to 0.37.3 by @dependabot in #112
Full Changelog: v0.9.1...v0.10.0