{"slug": "what-claude-found-when-it-ran-my-top-100-searches", "title": "What Claude Found When It Ran My Top 100 Searches", "summary": "A Bonsai demonstration showed that Claude, connected through Bonsai's hosted MCP server at https://mcp.bonsai.io/mcp with read-only scopes, ran more than 130 searches in 24 minutes against a 17,000-product WANDS catalog from Wayfair and graded the 100 most-searched terms as 44 good, 38 mixed and 18 poor. Claude traced the failures to six problems, including that any single word is enough for a product to match (hurting 30 searches) and that plurals and singulars never meet, such as \"floats\" versus \"float\" (11 searches), and returned a paste-ready query fix for the first. The exercise shows search teams can use an MCP-connected agent to audit query logs and diagnose relevance problems without manually running each top search.", "body_md": "[Query Logs](https://bonsai.io/docs/features/query-logs/) tell you what people type into your search box and how many results they got. They can't tell you if the results were any good. For that, somebody has to run the top searches one by one and read what comes back, and nobody has an afternoon for it. So I asked Claude to do it.\n\nBonsai has a [hosted MCP server](https://bonsai.io/docs/agents/hosted-mcp/). It's one URL, `https://mcp.bonsai.io/mcp`, that you add to Claude, ChatGPT, Cursor or Claude Code. You sign in, pick what the agent is allowed to do, and it gets tools to work with your clusters.\n\nTwo of those tools are enough here. One reads the Query Logs. The other sends a request to a cluster and returns the answer.\n\nNothing gets installed on your machine. You add the URL to the app, and you approve it on a Bonsai page.\n\nIn Claude, on the web or the desktop app, open **Settings**, then **Connectors**, add a custom connector with the URL `https://mcp.bonsai.io/mcp`, and click **Connect**.\n\nIn Claude Code it's one command:\n\n```\nclaude mcp add --transport http bonsai https://mcp.bonsai.io/mcp\n```\n\nThen run `/mcp` and pick **bonsai**. ChatGPT and Cursor are in the [docs](https://bonsai.io/docs/agents/hosted-mcp/#connect-an-app).\n\nEither way, a Bonsai page opens in your browser. Log in, then:\n\nPick the account.\n\nPick the scopes. With these four, the agent can't change anything:\n\n`account:read`, checked already.` clusters:read`, checked already.` query_logs:read`. Check it, so the agent can read your search terms.` data:read`. Check it, so the agent can run searches.\nPick how long the approval lasts: 30, 90 or 365 days.\n\nClick **Approve**.\n\nApproving creates an API token. It shows up in your account's API Tokens tab under the app's name, and Bonsai emails you that the app connected. To take the access back, delete the token.\n\nLater in this post, Claude creates an index, and that needs `data:write`. To add a scope to an approval, you disconnect, connect again and check it.\n\nThe cluster runs search for a furniture store. It's a demo: 17,000 products from [WANDS](https://github.com/wayfair/WANDS), a catalog Wayfair published along with searches their shoppers typed. I replayed those searches against it.\n\nThe store searches with the query every tutorial starts with:\n\n```\nPOST /products/_search\n{\n  \"size\": 10,\n  \"query\": {\n    \"multi_match\": {\n      \"query\": \"what the shopper typed\",\n      \"fields\": [\"product_name\", \"product_description\"]\n    }\n  }\n}\n```\n\nI also told it to only read, and to check a cause on the cluster before blaming it.\n\nTwenty-four minutes later, Claude had run more than 130 searches, all of them reads, and it had two things for me.\n\nThe first was a verdict for each of the 100 most searched terms: 44 good, 38 mixed and 18 poor, each with a reason. Three of the poor ones, in its words:\n\n| Search | Claude's reason | \n|---|---|\n| kitchen islands with seating | 0 kitchen islands; 6 bar stools whose copy says \"kitchen islands\" (\"islands\" misses \"island\") | \n| outdoor light fixtures | 9 light bulbs whose copy says \"fixtures\"; 1 outdoor light | \n| pool floats | 1 pool float in the top 10; \"floats\" matches the verb in descriptions (console table, bed, cake knife) and misses \"float\" | \n\nThe second was what to do about it. It grouped the failing searches into six problems. Each one came with the requests it had run as evidence, and with a fix. Three of the six:\n\n| Problem | Searches it hurts | What Claude recommended | \n|---|---|---|\n| Any single word is enough for a product to match | 30 | A different query. Do this first. | \n| Plural and singular never meet: \"floats\" is not \"float\" | 11 | A new index that folds plurals | \n| The shopper's word is not the catalog's word: \"carpet\" and \"rug\" | 5 | A short list of synonyms | \n\nI took them in that order.\n\nThe first recommendation came with the query, ready to paste. The index stays as it is:\n\n```\n{\n  \"size\": 10,\n  \"query\": {\n    \"bool\": {\n      \"must\": [\n        {\n          \"multi_match\": {\n            \"query\": \"QUERY\",\n            \"type\": \"cross_fields\",\n            \"fields\": [\n              \"product_name^3\", \"product_class^2\",\n              \"category\", \"product_description\"\n            ]\n          }\n        }\n      ],\n      \"should\": [\n        {\n          \"constant_score\": {\n            \"filter\": {\n              \"multi_match\": {\n                \"query\": \"QUERY\",\n                \"type\": \"cross_fields\",\n                \"minimum_should_match\": \"2<75%\",\n                \"fields\": [\n                  \"product_name\", \"product_class\",\n                  \"category\", \"product_description\"\n                ]\n              }\n            },\n            \"boost\": 100\n          }\n        }\n      ]\n    }\n  }\n}\n```\n\nThe new query searches the product type and the category too, and it counts a word in the name for more than a word in the description. Then it puts the products that have most of the words above the rest.\n\nThis is \"kitchen islands with seating\", before and after:\n\n| The store's query | Claude's query | \n|---|---|\n| casarina counter & bar stool | alisa kitchen island | \n| angelia solid wood bar stool | hofmeister kitchen island set | \n| severine 30 '' bar stool | ewart kitchen island | \n| faustina swivel adjustable height bar stool | elian kitchen cart | \n| barnabas colby swivel adjustable height bar stool | almira kitchen island | \n\n\"outdoor light fixtures\" went from nine light bulbs to ten outdoor wall lights. Nothing in the index changed. The app sends a different query.\n\nThe new query didn't help \"pool floats\". The other two recommendations need a new index, and I had told Claude not to change anything. So I told it to go ahead and build one next to the first, with plurals and synonyms.\n\nBefore creating anything, it ran a list of words through four ways of folding plurals. It threw out the one that turns \"comforters\" into \"comfort\" and \"bedding\" into \"bed\", and kept one that only touches plurals.\n\nThis is the part of its request that does it, with the two lists cut short:\n\n```\nPUT /products_v2\n{\n  \"settings\": {\n    \"analysis\": {\n      \"filter\": {\n        \"en_plural\": {\n          \"type\": \"stemmer\",\n          \"language\": \"plural_english\"\n        },\n        \"plural_exceptions\": {\n          \"type\": \"stemmer_override\",\n          \"rules\": [\"shelves => shelf\", \"knives => knife\", \"...\"]\n        },\n        \"shop_synonyms\": {\n          \"type\": \"synonym_graph\",\n          \"synonyms\": [\"carpet => carpet, rug\", \"couch => couch, sofa\", \"...\"]\n        }\n      }\n    }\n  }\n}\n```\n\nTo the new index, \"pool floats\" and \"pool float\" are the same two words: pool and float.\n\nIt created the index, I loaded the products into it, and this is \"pool floats\" now:\n\n| Before | After | \n|---|---|\n| pool float rattan deck box | sling float pool noodle | \n| lopez console table | lazy lounger pool float | \n| rose point cake knife | kona hammock pool float | \n| kaylee platform bed | zzoodle dragon pool float | \n| hammock inflatable pool float pool hammock pool chair water hammock | brierfield pool float canvas art | \n\nThe fifth one is a picture of a pool float. I'll allow it.\n\nI had Claude run the same 100 searches again with each change, and judge them the way it did the first time:\n\n|  | Good | Mixed | Poor | \n|---|---|---|---|\n| The store's query | 44 | 38 | 18 | \n| Claude's query | 46 | 42 | 12 | \n| Claude's query on the new index | 55 | 38 | 7 | \n\nAnd these are the three searches from the start, counted over the first ten results:\n\n| Search | The store's query | After both changes | \n|---|---|---|\n| kitchen islands with seating | 6 bar stools, no kitchen island | 10 kitchen islands | \n| outdoor light fixtures | 9 light bulbs, 1 outdoor light | 10 outdoor lights | \n| pool floats | 1 pool float | 6 pool floats | \n\nThat's two changes: a different query in the app, and an index that folds plurals and knows a few synonyms.\n\n`https://mcp.bonsai.io/mcp` to Claude, ChatGPT, Cursor or Claude Code, and approve it with Have you tried this on your search? I'd like to know what it found.", "url": "https://wpnews.pro/news/what-claude-found-when-it-ran-my-top-100-searches", "canonical_source": "https://bonsai.io/blog/what-claude-found-when-it-ran-my-top-100-searches/", "published_at": "2026-11-19 00:00:00+00:00", "updated_at": "2026-11-21 03:12:41.827650+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "ai-search"], "entities": ["Claude", "Bonsai", "Wayfair", "WANDS", "Claude Code", "ChatGPT", "Cursor"], "also_reported_by": [], "takeaway": "Connect Claude to Bonsai's hosted MCP server with query_logs:read and data:read scopes to audit the top 100 searches; on the 17,000-product WANDS catalog it graded 44 good, 38 mixed and 18 poor and found that single-word matching hurt 30 searches and plural/singular mismatches hurt 11.", "recommendation": {"advice": "Audit your top searches with an MCP-connected agent before tuning analyzers: fix single-word matching first, since it hurt 30 of 100 queries, then add plural folding for the 11 plural/singular misses.", "playbook": "rag-retrieval", "playbook_url": "https://wpnews.pro/playbooks/rag-retrieval"}, "alternates": {"html": "https://wpnews.pro/news/what-claude-found-when-it-ran-my-top-100-searches", "markdown": "https://wpnews.pro/news/what-claude-found-when-it-ran-my-top-100-searches.md", "text": "https://wpnews.pro/news/what-claude-found-when-it-ran-my-top-100-searches.txt", "jsonld": "https://wpnews.pro/news/what-claude-found-when-it-ran-my-top-100-searches.jsonld"}}