@spree/docs 0.1.154 → 0.1.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -428,6 +428,26 @@ Every rename keeps the legacy name working for one release with a deprecation wa
|
|
|
428
428
|
| `.with_metafield_key`, `.with_metafield_key_value` | `.with_custom_field_key`, `.with_custom_field_key_value` |
|
|
429
429
|
| `Spree.metafields` | `Spree.custom_fields` |
|
|
430
430
|
| `CustomFieldDefinition#name`, `#metafield_type`, `#display_on` | `#label`, `#field_type`, `#storefront_visible` (columns renamed) |
|
|
431
|
+
| `Spree::SearchProvider::Meilisearch` | `SpreeMeilisearch::SearchProvider` (moved to the `spree_meilisearch` gem) |
|
|
432
|
+
| `Spree::SearchProvider::ProductPresenter` | `SpreeMeilisearch::ProductPresenter` (moved to the `spree_meilisearch` gem) |
|
|
433
|
+
|
|
434
|
+
## Meilisearch moved to its own gem
|
|
435
|
+
|
|
436
|
+
Meilisearch is no longer part of `spree_core`. Stores using the Database provider (the default) need to do nothing.
|
|
437
|
+
|
|
438
|
+
If you set `Spree.search_provider` to the Meilisearch provider, add the gem and update the class name:
|
|
439
|
+
|
|
440
|
+
```ruby
|
|
441
|
+
# Gemfile
|
|
442
|
+
gem 'spree_meilisearch'
|
|
443
|
+
|
|
444
|
+
# config/initializers/spree.rb
|
|
445
|
+
Spree.search_provider = 'SpreeMeilisearch::SearchProvider'
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
Your `MEILISEARCH_URL` and `MEILISEARCH_API_KEY` settings are unchanged, and **no reindex is needed** — the documents have the same shape. Applications that subclassed the document presenter should inherit from `SpreeMeilisearch::ProductPresenter` instead.
|
|
449
|
+
|
|
450
|
+
The old class names keep working for one release, so an application that only names them in an initializer boots with a deprecation warning rather than an error — but the gem must be installed either way, since the classes now live there.
|
|
431
451
|
|
|
432
452
|
## Staff permissions: roles are data
|
|
433
453
|
|