SKU: PL-MEILI-SEARCH · v1.0.0 · Core 3.20+

Meilisearch product search

Fast product search for large S-Cart catalogs with Meilisearch: typing without accents, small typos and Japanese all find the right products.

Free

Select version

Category: Plugin

Keyword tags: free

Need it installed?

We set it up and configure it on your server — fixed price after a short quote.

Get a quote
Description

Meilisearch plugin

🌐 Language: 🇻🇳 Tiếng Việt · 🇬🇧 English (current) · 🇯🇵 日本語

Product search with Meilisearch for S-Cart stores with a very large catalog: typing without accents, small typos and Japanese all work — answers in a few milliseconds even with hundreds of thousands of products. Free plugin.

Requirements: gp247/shop ≥ 3.17 (S-Cart with the product search service) and a Meilisearch server (tested with Meilisearch 1.59).


Overview

S-Cart has its own search index in the database — enough for most stores, and it runs on shared hosting. This plugin is for stores that need more: a very large catalog, many people searching at once, or results even when a shopper makes a typo.

Once enabled, the store's search box, the admin product list, the REST API and MCP all search through Meilisearch. The store stays in charge: only products on sale in the right store are shown, and if Meilisearch is down or slow the store falls back to its own index — shoppers never see an error page.

What you need

A Meilisearch server running on its own. Meilisearch is a service that runs all the time, not a PHP library:

Option Suits
Self-hosted on a VPS or with Docker (getmeili/meilisearch) Own server, VPS
Meilisearch Cloud No server to run; also works when the store is on shared hosting

⚠️ Shared hosting cannot run Meilisearch. A store on shared hosting can use this plugin only by pointing it at Meilisearch Cloud or another server. Otherwise, S-Cart's built-in index is the right choice.

Size: Meilisearch keeps one document per product per language (200,000 products × 3 languages = 600,000 documents).

Installation

  1. Install the plugin from Extensions › Plugins (or php artisan gp247:ext-install --type=plugin --key=Meilisearch).
  2. Click the plugin's settings button (⚙) to open its settings screen.

Create an API key (use a limited key)

Do not paste the Meilisearch master key into the store: it has every right on the server. Create, once and with the master key, a key that only covers this site's indexes:

curl -X POST 'http://<server>:7700/keys' \
  -H 'Authorization: Bearer <MASTER_KEY>' -H 'Content-Type: application/json' \
  --data '{"name":"s-cart","indexes":["<prefix>*"],"expiresAt":null,
           "actions":["search","documents.add","documents.delete","indexes.create","indexes.get",
                      "settings.get","settings.update","tasks.get","stats.get"]}'

<prefix> is the Index prefix of the settings screen (by default made from the site's domain, e.g. my_shop_com_). Copy the key value of the answer into the API key field. A limited key cannot read the server version — Check connection then shows no version number, which is expected.

Set up and switch on

Meilisearch settings screen

  1. Enter the Server address (for example http://127.0.0.1:7700), the API key and, if needed, the Index prefix — each site sharing a server needs its own prefix. Click Save: the plugin creates the index and sets it up for the active languages.
  2. Click Check connection: the screen confirms the connection and shows how many documents the index holds.
  3. Open Configuration › Search, choose Meilisearch as the search engine and save.
  4. Click Rebuild index on that tab. The store sends every product to Meilisearch; only once everything is sent does Meilisearch start answering searches — until then the store keeps searching with its own index.

Search tab with Meilisearch synced

The Check before use box of the settings screen tells what is still missing.

Day to day

  • Saving, duplicating or deleting a product updates Meilisearch right after.
  • Adding a language to the store: click Rebuild index so Meilisearch searches the new language.
  • Meilisearch down or unreachable: the store searches with its own index; the Search tab and System alerts say it is "out of sync" — start Meilisearch again, then click Rebuild index.

Data sent to Meilisearch

Only public product fields, for each language: product id, store, status, whether it can be bought, SKU, alias, name, keywords, short description, brand, category names, selling price and current promotion price. No cost price, customers, orders or custom fields. The data stays on the Meilisearch server you choose.

Removing the plugin

Disable or uninstall the plugin: the store goes back to its own index. The index on Meilisearch is not deleted; to delete it:

curl -X DELETE 'http://<server>:7700/indexes/<prefix>products' -H 'Authorization: Bearer <MASTER_KEY>'

Notes

  • Meilisearch splits Japanese and Chinese into words: one Kanji inside a word (for example 茶 in 緑茶) finds nothing, while the whole word does. S-Cart's built-in index matches single Kanji — keep it if the store needs that.
  • Each search returns at most the 1,000 most relevant products.

Version history

  • 1.0.0 — First release: product search through Meilisearch (no accents, small typos, Japanese), index settings per language, sync on save / delete / rebuild, cleanup of stale documents on rebuild, encrypted API key, "Check before use" box.

Ratings & reviews

0 / 5
0 review(s)
5 0
4 0
3 0
2 0
1 0

Please sign in to write a review.

Login

No reviews yet. Be the first to review this product.