About Services Tools Blog Contact us

Search by Meaning for the Catalogue

Prepares in-stock products for search by meaning, so a phrase, a misspelling or an occasion can find the nearest colourways without a product name.

  • Semantic Search & RAG
  • Footwear retail
  • Pipeline
  • Productised
  • Local/private
  • 2026

The problem

Imported products cannot be found by meaning until their text has been processed. Keyword search misses a casual garment that belongs with a casual shoe, and it misses the shoe itself when the shopper misspells it.

What it does

After each import, a batch job processes active products that are new or whose text has changed, and saves the result. In the shop, keyword matches still come first. A longer phrase, or a search with no match, is filled from the closest in-stock products, and plain style codes stay on exact match. The job does not run when a shopper visits the site.

Outcomes

  • New stock becomes searchable by meaning after the batch, with no manual tagging.
  • A misspelling or a phrase still returns in-stock colourways.
  • Style codes keep an exact match.
  • Changed product text is processed again, so the search data does not go out of date.

Simplified mockup

Interactive preview with sample data. Nothing is sent to a server.

Vectors after import

Empty vectors
12
this batch
Will store
8
active, with search text
Will skip
4
inactive, blank or unsold
Products
StyleProductColourStockVector
PL-220Penny loaferTan42empty
PL-220Penny loaferBlack18empty
CB-118Country bootBrown27empty
CB-118Country bootOlive11empty
SP-090PlimsollWhite64empty
WC-305Weekend chinosStone33empty
WJ-014Waxed jacketOlive9empty
OX-440City oxfordBurgundy15empty
SP-091PlimsollNavy0empty
CB-000Country bootnone4empty
PL-221Penny loaferTan42empty
SK-012Wool scarfOat20empty
Batch
Refuses to run as a web request

Shop search

Keywords did not insist on more boots. The phrase pulled clothing that belongs with a soft shoe.

Waxed jacket
WJ-014 · olive · 9 in stock
0.84
Weekend chinos
WC-305 · stone · 33 in stock
0.81
Penny loafer
PL-220 · tan · 42 in stock · not a boot
0.74

Miss beside an exact code

wetherproof brouge 3 neighbours
Country boot
CB-118 · brown
0.71
Penny loafer
PL-220 · tan
0.66
City oxford
OX-440 · burgundy
0.63
OX-440 exact
City oxford
burgundy · 15 in stock
1 row

Style codes keep an exact match. Neighbours are not added.

How it works

  1. Select active products that are new or have changed text, in batches.
  2. Turn the search text into a numerical fingerprint of its meaning with Ollama, and store it.
  3. Refuse to run from a web page, so shoppers cannot trigger the script.
  4. Try keywords first on a shop search.
  5. Match a longer phrase, or a miss, by meaning and fill it from the closest in-stock products.
  6. Skip the search by meaning for exact style codes.

Pipeline

flowchart LR
  Import[New product text] --> Batch[Embed missing vectors]
  Batch --> Store[Vector on the product]
  Phrase[Shopper phrase] --> Keyword[Keyword hits first]
  Keyword --> Near[Nearest in-stock neighbours]
  Store --> Near
  Near --> Results[Colourway results]