Closed kentico-ericd closed 2 years ago
Implements #22
Manually register Algolia indexes using the new approach described here, e.g.
protected override void OnPreInit() { base.OnPreInit(); var environment = ConfigurationManager.AppSettings["Environment"]; Service.Use<IAlgoliaIndexRegister>(new DefaultAlgoliaIndexRegister() .Add<AlgoliaSiteSearchModel>($"{environment}-{AlgoliaSiteSearchModel.IndexName}") ); }
and ensure that the indexing/search functionality is working as expected. Indexes using the RegisterAlgoliaIndex attribute should still work as expected.
RegisterAlgoliaIndex
Motivation
Implements #22
Checklist
How to test
Manually register Algolia indexes using the new approach described here, e.g.
and ensure that the indexing/search functionality is working as expected. Indexes using the
RegisterAlgoliaIndex
attribute should still work as expected.