Troubleshooting
Troubleshoot support search quality — Product Support and Feedback Platform
Diagnose missing, misranked, or improperly exposed support results in Sustainable Catalyst using source-reviewed search contracts and reproducible public-visibility checks. This guide distinguishes candidate retrieval limits from ranking errors, taxonomy mismatches, caching, and private-data disclosure while defining evidence-preserving recovery and staging acceptance tests.
Application: Product Support and Feedback Platform
Component: Support Discovery, Guided Resolution, Unified Support Search, Knowledge Base
Article type: Troubleshooting
Status: Substantive source-reviewed guide; production acceptance pending
Source-reviewed release: v7.8.1 (search submodules documented at v5.2.9 and v5.3.0)
Last verified installed version: Not established
Estimated reading time: 23–28 minutes
Goal
Identify why Sustainable Catalyst support search misses relevant guidance, gives poor ordering, ignores product/version context, presents misleading confidence, or exposes material that is not approved for public discovery. Restore the intended public outcome: task-relevant, version-aware support results drawn only from records actually eligible for the requesting audience, with a documented verification trail.
A search problem has at least four separable stages: (1) source eligibility, (2) candidate retrieval, (3) relevance scoring and sorting, and (4) rendering/caching. A ranked list can be numerically correct but incomplete because the relevant article was never retrieved. Conversely, an apparently accurate result is a critical failure if it exposes a draft, private record, or unapproved submission.
Requirements
Use an authorized staging instance, synthetic fixtures, or a preapproved read-only production investigation. Capture the tested URL, installed plugin and dependency versions, time of test, query text after removing secrets, product/version/component filters, audience (signed-out public versus editor), expected record IDs, and exact response. Preserve one result-set snapshot before changing any relevance settings.
Do not submit customer names, email addresses, credentials, tokens, raw logs, unpublished manuscripts, support-case narratives, or restricted URLs as test queries. Treat a reported privacy leak as a security incident: restrict exposure, preserve access-controlled evidence, and involve the responsible owner before reproducing it publicly. An editor’s authenticated API response is not proof of what an anonymous visitor sees.
Confirm which interface is actually active on the page. The current source documents three public search families:
| Surface | Source-reviewed route or UI | Intended role | Important boundary |
|---|---|---|---|
| Support Discovery | GET /wp-json/scfs/v1/knowledge-base/discovery/search?q=... |
Published Support Article discovery, deterministic ranking, suggestions | Collects at most 500 published article candidates before scoring |
| Guided Resolution | GET or POST /wp-json/scfs/v1/guided-resolution/search |
Search across public Known Issues, Support Articles, releases, moderated ideas | Initial published article/issue query capped at 100 per type; filters apply before ranking |
| Unified Support Search | GET /wp-json/scfs/v1/unified-support/search and |
Merges Guided Resolution scores and Support Discovery scoring | Adds 0.35 × discovery_score to guided article score; confidence is a heuristic |
| Knowledge Base collection | GET /wp-json/scfs/v1/knowledge-base/articles |
Paginated published documentation with filters | Editors can explicitly request unpublished content; verify as signed-out public |
These route names and limits are source-reviewed contracts, not proof that a specific live URL is active or healthy. Older shortcodes and embedded Support Center views may be in use. Determine the rendered surface before comparing rankings.
Symptoms
| Observed behavior | Likely failure layer | First controlled check |
|---|---|---|
| A known published guide does not appear | Candidate cap, wrong taxonomy/version, missing search terms, stale cache | Query exact title with filters removed; compare direct article status and candidate selection |
| A weak body match outranks a precise title | Score fusion, taxonomy boosts, promotion, competing terms | Record raw guided score, discovery score, and final score |
| A draft or private Support Article appears anonymously | Source eligibility, serializer, proxy cache, search index | Test as anonymous; stop public delivery; inspect returned object and route |
| Public idea exposes a submitted private description | Moderation visibility and summary fallback | Inspect approved public-summary field, serialization, and cache without copying the text |
| Product/version selection returns unrelated guidance | Inconsistent taxonomy, alias mapping, filter parsing, or version metadata | Check canonical taxonomy slugs and selected version against candidate records |
| Search changed after article update | Publication state, revision, verification metadata, cache or candidate order | Compare old/new revision, post_status, published timestamp, taxonomy and cache |
| No results despite related guidance | Token normalization, directional synonyms, strict matching, candidate cap | Test shorter exact phrase, query token expansion, and candidate coverage |
| A “strong match” gives unusable advice | Heuristic score interpreted as statistical certainty | Evaluate relevance with labeled tasks; do not rely on confidence label alone |
| Search or export includes private cases | Cross-system aggregation or serialization boundary | Stop output; check that only public support records were supplied |
Cause
1. The relevant article never enters the ranking set
The reviewed SCFS_Support_Discovery::published_articles() requests post_status='publish', sorted by menu_order and modification time, with posts_per_page=500. SCFS_Guided_Resolution::rank_posts() requests published records with posts_per_page=100 and modification order. Neither method exhaustively paginates the full collection before scoring. When the eligible corpus exceeds those limits, an older relevant article may be omitted before its title is evaluated. An exact-title query yielding no result is therefore not conclusive evidence that the article is absent or irrelevant.
This candidate-cap behavior is a source-level retrieval limitation, not a Google Search indexing diagnosis. Do not change SEO directives, canonical URLs, or sitemaps to address an internally capped WordPress candidate query.
2. The correct record is retrieved but gets an unexpectedly low score
The standalone Support Discovery scorer normalizes text, expands a fixed directional synonym map, and awards approximate weights of 140 for an exact title phrase, 90 for an exact summary phrase, 70 for product/version context, plus weighted token matches (title 34, summary 22, taxonomy 26, version 30, content 7). It requires at least half the original query tokens to match, awards 45 for matching all original terms, and adds a small recent-update bonus. These are design weights, not measured relevance probabilities. Search terms in a title or summary should be editorially meaningful and should not be stuffed with keywords.
A synonym mapping such as api → endpoint is not necessarily symmetric: a query for endpoint may be treated differently from a query for api. Long, multi-intent queries can fail the half-token threshold even when a guide answers the core problem. Test both the user’s phrase and a short normalized task phrase before changing scoring.
3. Combined search changes the expected order
The reviewed Unified Search layer reuses Guided Resolution results and adds 0.35 × Support Discovery score for each Support Article before re-sorting. A confidence field is derived as min(0.99, top_score / 190) with state thresholds. This is heuristic ranking metadata; it is neither a statistically calibrated likelihood of correctness nor a verification certificate. Compare like-for-like surfaces and log component scores; do not compare a standalone discovery score directly to a unified final score.
4. Publication eligibility and public serialization are conflated
The dedicated article discovery query restricts Support Articles to publish; the Guided Resolution article query also restricts its own candidates to publish. The Knowledge Base collection has an include_unpublished option for authenticated editors. An anonymous request must never inherit an editor session, preview token, cached privileged response, or debug override.
Separately, Guided Resolution’s moderated public-idea query considers WordPress suggestion statuses including private and pending when _scfs_public_visibility=1. If _scfs_public_summary is empty, the source code falls back to _scfs_suggestion for the displayed summary. A public-visibility flag alone may not show that the fallback text was separately reviewed for public release. Require approved, non-sensitive public-summary content and verify anonymous output before allowing an idea into a public result. This is a recommended additional gate—not an existing source-confirmed requirement.
5. Filters, freshness, and rendering differ
A correct article might be absent because the product, version, component, collection, or article-type filter excludes it; taxonomy slugs may differ from displayed names. Results may differ between the dedicated Knowledge Base browser, Guided Resolution, Unified Search, REST responses, and cached HTML. sort=recent or sort=title intentionally changes ranking. Locale, stopwords, punctuation, and stale URLs can also make a search appear unsuccessful. Diagnose the exact surface rather than assuming one universal index.
Troubleshooting
Step 1 — Contain disclosure risk before probing relevance
If private or draft material was returned publicly, record the affected route, redacted response fingerprint, timestamp, and cache key or request ID without copying confidential content into a public ticket. Immediately block or disable the unsafe public view using an approved operational rollback, then test whether CDN/WordPress/object caches still serve the result. Do not solve this by publishing the draft or deleting source history. Escalate to the service owner and privacy/security reviewer.
If there is no suspected disclosure, proceed read-only. Snapshot search settings, taxonomy assignments, article status, plugin version, and a representative baseline result set.
Step 2 — Reproduce on the same audience and interface
Use one non-sensitive golden query such as export csv error. Test it both with and without product/version/component filters. Capture the full result IDs, source type, URLs, ordering, score reasons where exposed, and response status; separately test a known exact-title query, a synonym query, and a no-results query. Run anonymous tests in a fresh session without cookies or authorization headers; test editors in a separate session and keep their responses private.
Do not run write-style REST calls or trigger a consent-gated handoff merely to test relevance. The public search is an information-retrieval workflow, not a case-creation workflow.
Step 3 — Prove the document’s eligibility and publication state
Check the canonical WordPress post ID, sc_support_article type, actual post_status, taxonomy terms, current revision, permalink, excerpt, _scfs_kb_summary, product version and last-verified metadata. Verify that a draft/pending/private record is excluded from all anonymous article-search and collection endpoints, even when the query matches its exact title. For public ideas, inspect both the moderation flag and an independently approved public-safe summary.
Inspect the final JSON and rendered HTML. A private title, snippet, count, link, suggestion text, or autocomplete response can be a disclosure even when the document itself returns a 403 or 404. Test canonical pages, preview paths, shortcodes, related-results widgets, and any exported search snapshot.
Step 4 — Measure candidate recall before changing score weights
For each relevant published article, determine whether it enters the retrieval set before scoring. Test a synthetic corpus of more than 500 published Support Articles against dedicated discovery, and more than 100 per type against Guided Resolution. Place an exact-title match outside the initial modification-order window. The expected remedy is a bounded, authorized, index-backed or paginated retrieval strategy that makes the entire eligible corpus searchable before global top-k ranking. It must respect request budgets and prevent arbitrary private scans; adding a larger fixed cap is only a temporary mitigation.
In staging, compare candidate count, total published eligible count, retrieved relevant count, and search latency. Pagination or index improvements must retain deterministic ordering, taxonomy filtering, and no private record reads on public execution paths. A performance improvement that drops relevant older records fails the quality gate.
Step 5 — Inspect why eligible records score as they do
For a small labeled set, compare exact title phrase, summary phrase, taxonomy/version, normalized tokens, synonym expansions, body matches, threshold rule, editorial boosts, and recency. In Unified Search, capture both guided_resolution_score and discovery_score where available. Verify stable tie-breaking and that editorial promotion does not place unrelated guidance above clearly relevant documentation without an explicit documented reason.
Use ranked retrieval metrics, not only the number of search results. Suggested acceptance measures are top-3 precision for a reviewer-labeled query set, recall of known relevant published records, no-results false-negative rate, and rank position for the best answer. These are proposed QA metrics, not existing measured production KPIs.
Step 6 — Reconcile product/version taxonomy and article metadata
Compare the filter’s canonical product slug with the term assigned to each article, then inspect product-version and component terms. Check whether an article belongs to the requested version, a version-independent task, or a known compatibility exception. Avoid attaching every version term solely to improve ranking: that produces misleading cross-version help. When an article is stale, correct its verified-version metadata only after testing the guidance. Preserve old revisions and update the intended public record with normal editorial controls.
Step 7 — Test cache, URL, and integration boundaries
Check anonymous WordPress HTML, the dedicated discovery REST endpoint, the unified REST endpoint, and any front-end fetch/rendering layer after a source revision. Record whether differences arise before or after caches. Purge only the affected cache scopes through an authorized release process; avoid unbounded database rewrites or full-site CSS/HTML replacement. Review the /support/ embedded view separately from the dedicated Knowledge Base archive if both exist.
If backend FastAPI scoring is involved, establish whether WordPress supplied a public-only candidate list. The deterministic backend receives candidate records but is not a replacement for WordPress publication authorization. Never grant private-record eligibility based solely on a high computed score.
Step 8 — Recheck privacy-minimized analytics and downstream handoffs
Guided Resolution has analytics and consent-gated private support handoffs. Validate query redaction and retention with synthetic secrets, and check that only approved public context is passed to analytics or events. A search must not silently create a support case or copy private correspondence into public feedback intelligence. Confirm that an index refresh, ranking update, or automated classification has not changed article publication status, issue state, official response, or roadmap state.
Worked synthetic reproduction
The accompanying fixture contains published guides, a deliberately older published exact-title match, draft and private decoys, and public-idea approval edge cases. No real visitor or customer data is included. The local checker simulates the source-reviewed eligibility and lexical weight pattern and adds a proposed fail-closed public-summary requirement for public ideas; it is not the installed WordPress engine.
| Test query | Expected outcome | What failure indicates |
|---|---|---|
csv export error |
Published exact-title guide ranks ahead of weaker body matches | Score fusion, metadata, or eligible-candidate failure |
| Exact title of a draft guide | No draft result in an anonymous list | Publication or cache leak |
| Exact title of a private guide | No private article in public search, suggestions, or HTML | Private-content disclosure |
api endpoint |
Relevant published guidance found; explain synonym direction | Query normalization and token-matching behavior |
| Exact title of old article beyond candidate cap | Search still retrieves it in a corrected implementation | Incomplete retrieval before ranking |
| Approved idea with no reviewed public summary | Withheld by proposed release gate | Suggestion-text fallback and disclosure risk |
For every result, retain the source record ID and publication state in a private test manifest. Do not embed unpublished titles, private suggestion text, tokens, or source-path details in public bug reports.
Suggested evaluation measures
For a defined set of realistic, reviewed queries, calculate Precision@3 = relevant results in the first three / 3 and Known-Relevant Recall = retrieved relevant records / all labeled eligible relevant records. If fewer than three results exist, still use a denominator of three and disclose the actual result count; missing slots are nonrelevant. Do not use a favorable precision number to obscure missing relevant documents. Report corpus size, label protocol, negative controls, selection bias, and confidence in human relevance judgments.
No fixed numeric accuracy threshold is scientifically justified merely by this repository. Record a project-specific baseline and predeclare acceptance thresholds before modifying search weights. Zero unauthorized public disclosures is a mandatory requirement, not an average quality metric.
Resolution
Apply the smallest authorized change corresponding to the confirmed failure class:
- Eligibility/serialization leak: block the affected public path, segregate privileged response caching, enforce post-status and disclosure checks at the final output, and test every related public endpoint.
- Candidate cap: implement controlled retrieval across the complete eligible corpus (or an equivalent authorized public-only index) and globally rank before truncating the result set; independently benchmark latency.
- Low relevance: correct titles, summaries, taxonomy, synonyms, and verified-version metadata before changing weights; document any ranking-rule change and regression impact.
- Filter mismatch: fix canonical slugs or UI mapping without broadening visibility or making unrelated versions appear supported.
- Stale presentation: reconcile source revision and affected caches, verify new responses anonymously, and retain immutable evidence of the previous issue.
- Unreviewed public idea: require explicitly approved public-summary text or suppress the suggestion; never fall back to private submitter narrative in public output.
Deploy with a tested rollback path, selected release approval, and post-deployment anonymous verification. Do not auto-approve support articles, reopen a private case, or alter production taxonomy at scale as a substitute for diagnosis.
Verification
A fix is acceptable only after the relevant owners independently verify all applicable gates below. Code or synthetic test success alone is insufficient.
| Acceptance gate | Required evidence |
|---|---|
| Published-only article eligibility | Draft, pending, private, password-protected and removed synthetic fixtures are absent from anonymous discovery, unified search, suggestions and Knowledge Base results |
| Complete eligible retrieval | Old exact-title documents outside earlier 100/500 candidate windows are retrievable without unauthorized scans |
| Relevance | Golden-query expected top results, clear score-reason traces, stable sort and labeled evaluation metrics |
| Context fidelity | Product, version, component, collection and article-type filters exclude incompatible records without silently dropping valid guidance |
| Output privacy | Final JSON/HTML/caches contain no private article or unapproved suggestion fields; unrelated editor cookies do not affect anonymous output |
| Human-governed state | Ranking, search, analytics and diagnostics do not approve, publish, withdraw, resolve, or create private support cases |
| Operational integrity | Read-only probes, rate-limit/load budget, cache invalidation, rollback and independent review results documented |
Use the provided staging matrix to record PASS, FAIL, BLOCKED, or NOT_RUN with environment, evidence link, reviewer and date. A row remains NOT_RUN until executed on the specified release and audience context. A passing developer-owned local test cannot be substituted for an independent privacy review.
Incident evidence packet
Preserve a minimal, access-controlled report with: incident ID; search surface; requested audience; timestamp and environment; installed release and source commit; normalized non-sensitive query; active product/version filters; affected public result IDs or one-way hashes; expected versus observed order; source post_status; candidate-list size; component scores when available; cache outcome; reproduction steps; owner; proposed remediation; rollback; and final reviewer disposition. Put sensitive evidence in the approved restricted incident system and send only sanitized references to general development channels.
Safety and limitations
The repository documents intended publication-only retrieval in several paths, but the full deployed system may include a different plugin build, site-specific hooks, CDN caching, or reverse proxies. The backend parity modules are deterministic evaluators, not independent privacy filters or scientific search-relevance validators. No live confidentiality guarantees or SEO indexing outcomes are established by this article. Test against a staging clone with authorized synthetic records before production changes.
Do not include private search text in logs, publish visitor IPs, share confidential response bodies, or infer that any individual needs support based on a search phrase. If confidentiality is in doubt, prioritize containment and disclosure review over search-ranking optimization.
References and source review
- Support Discovery source: candidate retrieval, scoring, and public routes —
published_articles(),score_article(),rank_articles(),rest_search(). - Guided Resolution source: eligible post queries, public ideas, analytics —
rank_posts(),rank_public_suggestions(), analytics and search methods. - Unified Support Search source: score fusion, output contract —
enrich_support_articles(),search(). - Knowledge Base foundation source: article eligibility and editor-only unpublished results —
rest_query_args(),rest_article(). - Search Quality documentation (v5.2.9).
- Unified Search and Guided Resolution documentation (v5.3.0).
- Versioned backend scoring parity; Unified backend evaluator.
