Compare commits
2
Commits
v0.31.0
...
4900f0505d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4900f0505d | ||
|
|
61e45be2e2 |
No files matched your search
@@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||
|
||||
## [0.31.1] - 2026-10-19
|
||||
### Added
|
||||
- `storefront.search.view_all` translation ("View all :count results" /
|
||||
"Δες όλα τα :count αποτελέσματα"), for a live search dropdown's link to
|
||||
the full results.
|
||||
|
||||
### Changed
|
||||
- Product search matches the start of words again:
|
||||
`lunar:meilisearch:tune-product-search` turns Meilisearch's prefix
|
||||
search back on, so "παπ" finds "Παπάκι" and "cli" finds "clicker". Live
|
||||
search (results as you type, from 3 characters) needs this. Before, a
|
||||
query only matched whole words.
|
||||
- Typo tolerance on product search is now one typo from 10 and two from 16
|
||||
(was 8 / 12). Meilisearch counts Greek words about double, so under the
|
||||
old setting a 6-letter Greek word already got two typos. With prefix
|
||||
search on, that matched almost anything ("κατανα" → 179 products, now
|
||||
9). Greek words now get one typo from 5 letters and two from 8; Latin
|
||||
ones from 10 and 16. The app's entrypoint runs the command on every
|
||||
boot, so the settings apply on the next deploy.
|
||||
|
||||
## [0.31.0] - 2026-10-01
|
||||
### Added
|
||||
- A "Create voucher" button on Carrier Vouchers, for a parcel that isn't a
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"name": "boboko/core",
|
||||
"description": "Core module — authentication and shared panel behaviour",
|
||||
"type": "library",
|
||||
"version": "0.31.0",
|
||||
"version": "0.31.1",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Modules\\Core\\": "src/"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@boboko/core",
|
||||
"version": "0.31.0",
|
||||
"version": "0.31.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"description": "Portable Stimulus controllers and styles for boboko-core's cart + checkout module. Installed as a real npm dependency (file:../boboko-core in dev, a tagged git install in prod) so a consuming app's `npm install` resolves this package's own dependencies (leaflet, @hotwired/stimulus) transitively, the same way `composer update boboko/*` does for PHP. See CONTRIBUTE.md's \"JS/CSS: a real npm package\" section.",
|
||||
|
||||
@@ -10,33 +10,31 @@ use Lunar\Models\Product;
|
||||
/**
|
||||
* lunarphp/meilisearch's own `lunar:meilisearch:setup` only pushes
|
||||
* filterableAttributes/sortableAttributes (see MeilisearchSetup::handle())
|
||||
* — it has no notion of typo tolerance or prefix search, and Meilisearch's
|
||||
* defaults for both are loose enough to produce bad matches on short Greek
|
||||
* words. Confirmed via showMatchesPosition that a query for "Κάπτεν" was
|
||||
* matching "κανένας" purely through prefixSearch's default 'indexingTime'
|
||||
* behavior (their edit distance is far past anything typo tolerance would
|
||||
* bridge) — fixed by disabling prefix search below, verified afterward with
|
||||
* "Super"/"Superheroes"-style prefix probes returning no results for a
|
||||
* partial word. minWordSizeForTypos is tightened defensively alongside it
|
||||
* so short words in general get less typo-tolerant fuzzing, even though a
|
||||
* separate short-word collision case ("Κάπτεν" vs "κάποτε", high letter
|
||||
* overlap despite real edit distance) persisted after both settings were
|
||||
* confirmed live and wasn't fully root-caused — treated as a known,
|
||||
* narrow edge case rather than a blocker. Run this after
|
||||
* `lunar:meilisearch:setup`, whenever Product's index needs
|
||||
* (re)provisioning.
|
||||
* — it has no notion of typo tolerance or prefix search. This tunes both
|
||||
* on the product index; run it after `lunar:meilisearch:setup` (the app's
|
||||
* entrypoint runs it on every boot).
|
||||
*
|
||||
* Disabling prefix search here is a deliberate tradeoff: it also turns off
|
||||
* legitimate partial-word matching (typing "car" matching "cart" before
|
||||
* you finish the word) — useful for a future autocomplete/search-as-you-
|
||||
* type UI. If that's built later, re-enable prefixSearch deliberately then,
|
||||
* informed by real UX needs, rather than leaving it on by accident today.
|
||||
* Typo tolerance: one typo only from 10, two from 16. Meilisearch measures
|
||||
* these thresholds so that Greek words count about double (verified
|
||||
* 2026-10-19: with the old 8/12, the 6-letter "μπαλόκ" still matched
|
||||
* "μπρελόκ" with two typos, while 7-letter Latin words got none). Combined
|
||||
* with prefix search, that let short Greek queries match almost anything
|
||||
* ("κατανα" → 179 products, "Κάπτεν" → "Μπανάνα Κατάνα"). At 10/16 a Greek
|
||||
* word gets one typo from 5 letters and two from 8 ("κατανα" → 9,
|
||||
* "Κάπτεν" → 1); Latin words from 10 and 16 letters.
|
||||
*
|
||||
* Prefix search is ON (`indexingTime`, Meilisearch's default): the last
|
||||
* word of a query also matches words starting with it, so "παπ" finds
|
||||
* "Παπάκι" and "cli" finds "clicker" — what the storefront's live search
|
||||
* needs as the shopper types (3+ characters). It had been disabled before
|
||||
* live search existed, while the loose Greek typo matching above was
|
||||
* being traced.
|
||||
*/
|
||||
class TuneProductSearchCommand extends Command
|
||||
{
|
||||
protected $signature = 'lunar:meilisearch:tune-product-search';
|
||||
|
||||
protected $description = 'Tighten typo-tolerance and disable prefix search on the product search index';
|
||||
protected $description = 'Tighten typo tolerance and enable prefix search on the product search index';
|
||||
|
||||
public function handle(EngineManager $engineManager): void
|
||||
{
|
||||
@@ -49,16 +47,16 @@ class TuneProductSearchCommand extends Command
|
||||
|
||||
$task = $index->updateTypoTolerance([
|
||||
'minWordSizeForTypos' => [
|
||||
'oneTypo' => 8,
|
||||
'twoTypos' => 12,
|
||||
'oneTypo' => 10,
|
||||
'twoTypos' => 16,
|
||||
],
|
||||
]);
|
||||
|
||||
$engine->waitForTask($task['taskUid']);
|
||||
|
||||
$this->components->info('Disabling prefix search for product search...');
|
||||
$this->components->info('Enabling prefix search for product search...');
|
||||
|
||||
$task = $index->updatePrefixSearch('disabled');
|
||||
$task = $index->updatePrefixSearch('indexingTime');
|
||||
|
||||
$engine->waitForTask($task['taskUid']);
|
||||
|
||||
|
||||
@@ -86,6 +86,11 @@ class StorefrontTranslationsSeeder extends Seeder
|
||||
// ── Search ──────────────────────────────────────────────────
|
||||
'search.placeholder' => ['Search products…', 'Αναζήτηση προϊόντων…'],
|
||||
'search.results_for' => ['Search results for ', 'Αποτελέσματα αναζήτησης για '],
|
||||
// Live search: the link under the suggestions to the full results page.
|
||||
'search.view_all' => [
|
||||
'{1} View :count result|[2,*] View all :count results',
|
||||
'{1} Δες :count αποτέλεσμα|[2,*] Δες όλα τα :count αποτελέσματα',
|
||||
],
|
||||
|
||||
'customer_reviews' => [
|
||||
'{0} No customer reviews|{1} :count customer review|[2,*] :count customer reviews',
|
||||
|
||||
Reference in new issue
Block a user