# Changelog

> Every Search Suite release, newest first, with what changed in each module.

Current version: **3.0.0**

Search Suite releases all of its modules together, on one version. Each module's own notes follow under the release they belong to.

## 3.0.0 — 2026-11-25

### qoliber/module-fastsearch

Search Suite 3.0. Core FastSearch module: configuration, storefront endpoint and search service wiring. Requires PHP 8.1–8.5 and Magento 2.4.6 or later (Magento dependencies are pinned to the 2.4.6 versions).

#### Breaking

- Engine adapters are suggested, not required: require the adapter for your engine (e.g. `qoliber/searchsuite-opensearch-adapter`).
- The ElasticSuite integration moved to `qoliber/module-fastsearch-elasticsuite` (namespace `Qoliber\FastSearchElasticSuite\`).
- The public `/fastsearch/api/config` route is removed.
- nginx: Magento's `nginx.conf.sample` blocks the storefront endpoint; include the shipped `nginx/storefront-endpoint.conf` (Apache needs nothing).

#### Added

- The storefront endpoint (`pub/api/search.php`, `suggest.php`, `popular.php`) ships with the module and is installed on `setup:upgrade`; `bin/magento fastsearch:endpoint:install` for read-only builds.
- Elasticsearch 8 as a FastSearch engine, with its own settings and index prefix; the engine list offers only installed adapters.

#### Fixed

- The storefront endpoint skips facets when the search box asks for none. Both themes send `no_aggregations` when Show Filters is off; `pub/api/search.php` dropped it and computed the facets anyway.
- Installs, compiles (`setup:di:compile`) and runs on stores without ElasticSuite.
- Store-view values for enablement, minimum search length and suggestion limit.
- Admin-saved engine passwords are decrypted; the core `customer` section is no longer replaced (Magento_Persistent).
- The ghost-index cleanup keeps live, aliased and rebuild indexes.
- Storefront search works with "Add Store Code to Urls" on and with web server rewrites off: the search box called `/<store code>/api/…` or `/index.php/api/…`, which the endpoint is not served from, so search, suggestions and popular terms failed.
- `setup:upgrade` and `fastsearch:endpoint:install` no longer overwrite a file in `pub/api/` that is not FastSearch's: it is left alone and reported (`--force` replaces it). Older FastSearch copies are still updated.
- The storefront endpoint reads only the config FastSearch writes; an export left by the ElasticSuite bridge in `var/fastsearch_elasticsuite/` was read first and broke search.
- Prices are indexed correctly when the price index is split by website and/or customer group (`indexer:set-dimensions-mode catalog_product_price`): every product got its plain price (no special or group prices, 0 for configurable, grouped and bundle products).
- The search box gets the rate from the base currency to the shopper's display currency, so prices are converted, not just labelled with the display currency.

#### Removed

- Unused legacy code: the standalone `SearchClient`/`PostFilterBuilder`, unregistered commands and observer, a regenerate controller that needed ElasticSuite.

### qoliber/module-fastsearch-admin

Search Suite 3.0. Admin UI: boost editor and FastSearch settings. Requires PHP 8.1–8.5 and Magento 2.4.6 or later (Magento dependencies are pinned to the 2.4.6 versions).

#### Added

- Test ids on the editor's category, attribute and value fields, and an integration test proving every rule type, from the editor's save action to the storefront ranking.

#### Fixed

- Saved boost rules are validated (types, boost range 0.1–1000, SKUs, categories, attributes, plain-text phrases, existing store view).
- Removing every rule and saving clears the store's boosts.
- The ranking preview uses the configured backend and a signed admin preview token.
- The boost editor no longer writes debug lines to the browser console when an attribute rule is added.

#### Removed

- The OpenSearch "Host" and "Port" fields, which nothing read ("Hosts" applies).

### qoliber/module-fastsearch-direct

Search Suite 3.0. Direct (PHP) search frontend for FastSearch. Requires PHP 8.1–8.5 and Magento 2.4.6 or later (Magento dependencies are pinned to the 2.4.6 versions).

#### Fixed

- Goes through the shared search path; honours its enable flag; generic errors; dependencies fixed.

### qoliber/module-fastsearch-elasticsuite

Search Suite 3.0. Integration with Smile ElasticSuite (optional). Requires PHP 8.1–8.5 and Magento 2.4.6 or later (Magento dependencies are pinned to the 2.4.6 versions).

#### Breaking

- Now holds the ElasticSuite integration that lived in `qoliber/module-fastsearch`, under `Qoliber\FastSearchElasticSuite\`: the legacy config generator and exporter, the data sources, aggregation pipeline classes and their plugins.

#### Changed

- Registers the ElasticSuite config regeneration (reindex plugin, cron job and cron group); the moved DI blocks stay disabled as before.

#### Fixed

- PHP 8.1 compatibility (no typed class constants).

### qoliber/module-fastsearch-graphql

Search Suite 3.0. GraphQL queries for FastSearch. Requires PHP 8.1–8.5 and Magento 2.4.6 or later (Magento dependencies are pinned to the 2.4.6 versions).

#### Fixed

- Goes through the shared search path; page size and page are clamped.
- `fastSearch` returns prices converted to the requested currency (`Content-Currency` or the store view's display currency); they were base-currency amounts labelled with that currency.

### qoliber/module-fastsearch-hyva

Search Suite 3.0. FastSearch storefront for the Hyvä theme. Requires PHP 8.1–8.5 and Magento 2.4.6 or later (Magento dependencies are pinned to the 2.4.6 versions).

#### Added

- `data-testid` hooks for end-to-end tests, including the product price and the minimum-length notice.

#### Fixed

- Renders hits; CSP-safe (`Alpine.data`, `registerInlineScript`); Tailwind sources registered.
- Uses FastSearch's minimum search length instead of the catalog's; stale suggest requests are cancelled.
- A submitted search falls back to native Magento search when the API fails.
- The store view's FastSearch settings now apply on Hyvä: Number of suggestions to show (was always 10), Default Page Size (was always 12), Search Mode "Direct Search" (lists products while the shopper types), Show Filters "No" (no filter panel, no aggregations requested) and the Price Display prefixes ("Starting at $10.00" for a grouped, configurable or bundle product whose options cost different amounts; the lowest price was shown without a prefix).
- The "Please enter N or more characters" notice names FastSearch's Minimum Search Length, not the catalog search minimum.
- The price filter works: its slider had no handler. It now has a lower and an upper bound and filters when let go; its limits stay those of the unfiltered results.
- Prices are converted to the shopper's display currency; they were base-currency amounts with the display currency's symbol.

### qoliber/module-fastsearch-indexer

Search Suite 3.0. Builds the FastSearch indexes and the storefront configuration. Requires PHP 8.1–8.5 and Magento 2.4.6 or later (Magento dependencies are pinned to the 2.4.6 versions).

#### Fixed

- An admin save, a full reindex or a regenerate-all asks each OpenSwoole server once to reload (`ConfigRegenerator::regenerateStores()`). It asked once per store view, and each reload restarts every worker.
- After a config save, Magento asks the OpenSwoole server to reload with the decrypted API key. It sent the stored, encrypted value, so the server refused every reload with a 401.
- The indexer writes exactly the index the storefront reads (`IndexTargetResolver`).
- Real stock status, visibility "Search" and "Catalog, Search" only, batch loading without N+1 queries and a paginated full-catalog load.
- mview covers website, relation and bundle changes; failures throw so Magento retries.
- Store configs carry each store view's settings, are written atomically with mode 0640 to `<var>/fastsearch`, and regenerate after a full reindex and an admin save.
- Store views with FastSearch disabled are skipped (a fresh install reported indexing errors).
- The On Sale and New boost rules had no effect: no product carried the fields they match. Products are now indexed with `sale` (an active special price, or an indexed final price below the regular price, which includes catalog price rules) and `new` (today within "Set Product as New From/To", as Magento's New Products widget decides), both in the store's timezone; a store's own Yes/No `sale` or `new` attribute still sets them. Both are decided when a product is indexed.
- Products saved, disabled or deleted while a full reindex ran showed their old data, or came back, once the new index went live. They are now re-applied to the new index before the reindex finishes (kept in the new table `qoliber_fastsearch_rebuild_pending`; run `bin/magento setup:upgrade`). Only one full reindex per store view and search engine runs at a time: two at once could publish an incomplete catalog. `fastsearch:index:build` stops with an error while another one runs, and a reindex started by Magento skips that store view and leaves the index invalid, so cron rebuilds it afterwards. Saving a product before a store view's first index exists no longer starts a full reindex inside that save; the index is marked for cron to build.

### qoliber/module-fastsearch-luma

Search Suite 3.0. FastSearch storefront for the Luma theme. Requires PHP 8.1–8.5 and Magento 2.4.6 or later (Magento dependencies are pinned to the 2.4.6 versions).

#### Fixed

- Stale requests are cancelled, so the latest query wins; a submitted search falls back to native Magento search when the API fails.
- The suggestion dropdown opens from the search box's right edge instead of running off-screen.
- Phones: the search field is usable again and suggestions and results fit the screen.
- Highlights are reduced to text plus `<mark>`; the layout respects the FastSearch enable setting.
- Prices are converted to the shopper's display currency; they were base-currency amounts with the display currency's symbol.
- "Clear All" appears when only a price range is applied, so the range can be cleared.

#### Removed

- An unreferenced debug template (`test.phtml`).

### qoliber/module-fastsearch-openswoole

Search Suite 3.0. Magento side of the OpenSwoole search server. Requires PHP 8.1–8.5 and Magento 2.4.6 or later (Magento dependencies are pinned to the 2.4.6 versions).

#### Fixed

- The generated nginx config passes `nginx -t`; proxy secret and API key are stored encrypted.

### qoliber/module-fastsearch-webapi

Search Suite 3.0. REST API for FastSearch. Requires PHP 8.1–8.5 and Magento 2.4.6 or later (Magento dependencies are pinned to the 2.4.6 versions).

#### Breaking

- Search and suggest return data interfaces with named fields (keys were lost before).

#### Fixed

- Goes through the shared search path (store config, then the request handler); `storeId` is validated.
