Research note · November 1, 2026
Searching for “fishing boat” and “fishing boats” returned different objects.
A search for “3 mast ship” and one for “3 mast ships” returned different museum objects. Across ten singular and plural pairs the top 20 results shared 6.6 records on average, and four pairs shared none. What caused it, two fixes that did not work, and one that did.
linkedculturesearchstemmingopensearchrelevancecollections
If your collection search treats "boat" and "boats" as different words, you will not see it in a demo, because nobody demos both. You see it when someone types the plural and gets a different set of objects than they got the day before with the singular.
That is how it surfaced here. A search for "3 mast ship" and a search for "3 mast ships" returned different results, and nothing about the two queries differs in meaning. The corpus is about 525,000 records from ten sources, searched with OpenSearch for keywords and Qdrant for embeddings.
The keyword index does no stemming, deliberately. It holds English, French, Italian and Dutch records behind one analyzer, and a stemmer written for one language mangles words in the others, so each word is stored as written. The cost of that choice is a known one. This note measures it, shows two fixes that did not remove it, and describes the one that did.
How I measured it
Take a singular and plural pair, run both at the same result limit, and count how many records appear in both top 20 lists. I ran ten pairs. The mean overlap was 6.6 of 20. "bronze medal" and "bronze medals" shared nothing, and so did "landscape painting" and "landscape paintings", "fishing boat" and "fishing boats", and "portrait of a woman" and "portraits of women". Switching off the generated image descriptions changed nothing, so the split was in the catalog search itself.
Two things will mislead you if you measure this yourself. The search service caches whole responses and query embeddings, so repeated identical requests tell you nothing. The result limit also changes how many candidates feed the final ranking, so two runs at different limits differ for reasons unrelated to the change you are testing. I compared lists at different limits once, saw large differences, and had to throw the comparison out.
Why it happened
The analyzer is language-neutral: lowercase, ASCII folding, and French and Italian elision. With no stemming, "ship" and "ships" are different tokens.
The heaviest scoring signals are exact phrase matches on title and creator. A query for "fishing boat" scores records with "boat" in the title above records with "boats", and a query for "fishing boats" does the reverse. Each form has its own large group of records, so the two top 20 lists barely touch.
The index already ran fuzzy matching, but only to decide which records are candidates and to count how many query terms each hit matched. It never affected the score.
Two things that did not work
I did not want a list of plural rules. The list never ends (women, mice, mummies, masted) and would be English only.
First I added one-edit fuzzy matching to the scoring clauses on the short fields: title, creator, culture, type, medium. On 12 pairs the mean overlap moved from 7.7 to 9.2 of 20. The phrase boosts were too large for a fuzzy clause to compete with.
Second I indexed a stemmed copy of each field with a light English stemmer [1] and added a clause on the copy at about the same weight as the exact clause (the exact one slightly higher). Overlap reached only 13.1 of 20. The explain API [2] showed why. "medals" appears in 21 titles, and its stem "medal" appears in 723. BM25 weights a rarer token more heavily (inverse document frequency) [3] [4], so the exact clause won whichever form the query used, and the two queries drifted apart again.
What I shipped
The new index is a copy of the old one with a .stem subfield on 15 text fields. The exact fields are unchanged. Reindexing 525,867 records took about ten minutes with throttling, with no failures, and the new index is 483 MB against 517 MB for the old one. The stemmer maps medals to medal, mummies to mummy and masted to mast.
Each scoring clause is now the larger of two clauses: one on the stemmed field at full weight, and one on the exact field at half weight. The recall and coverage clauses match the stemmed fields. I take the larger of the two scores rather than the sum, so a record is never counted twice. At half weight the exact clause rarely wins, and the two queries see the same ranking. The change sits behind a flag and the old index is still there for rollback.
Measured directly against the index, the 13-pair mean overlap went from 7.2 to 18.6 of 20, and 12 of the 13 pairs returned identical sets. Through the full service, with the semantic legs included, it went from 7.2 to 16.8, and 7 pairs shared at least 19 of 20. Query time did not change.
"three-masted ships" now finds Two Three-Mast Ships on Stormy Sea, which the old index missed because it could not connect "masted" to "mast".
A speed change from the same work
While reading the captured queries I found that fuzzy matching was most of the keyword leg's cost. The setting was AUTO, which allows two edits on words of six or more characters. Replaying 20 novel queries against the live index, the median keyword query fell from 108 ms to 40 ms with a single edit, and per-hit term coverage matched the old setting in 99.6% of the top 100. One edit still covers plurals and single-letter typos. A typical warm search went from about 300 ms to about 150 ms.
What it does not fix
Irregular plurals. "portrait woman" and "portrait women" still share nothing, because no suffix stemmer connects them. Spelling variants such as armour and armor are caught by fuzzy recall but not by scoring.
The stemmer is English and the corpus is not. For French records it mostly strips a trailing s, and the exact fields stay in place, so I expect little harm, but I have not measured French queries. A stemmer can also merge words that should stay apart, and I looked at a handful of results, not a systematic sample.
A check you can run
- [1]Take ten singular and plural pairs from your query log. Run each at the same limit and count shared records in the top 20. If the mean is under about 12, you probably have this.
- [2]Run your analyzer on a pair of word forms. In OpenSearch,
_analyzeon the field shows the tokens. - [3]If you add a stemmed field, weight the exact clause at half or less, and use the explain API on one record to see which clause is winning. The rarer token usually is.
The change is in hybrid-service/server.mjs in the LinkedCulture repository, behind LINKEDCULTURE_KEYWORD_STEM.
References
- [1]OpenSearch documentation, Stemmer token filter. The
light_englishoption is the one used here. - [2]OpenSearch documentation, Explain API. Returns the score contribution of each clause for one document.
- [3]Stephen Robertson and Hugo Zaragoza, "The Probabilistic Relevance Framework: BM25 and Beyond", Foundations and Trends in Information Retrieval, 2009. Inverse document frequency weighting.
- [4]Elastic, "Practical BM25, Part 2: The BM25 Algorithm and its Variables".