|
| 1 | +# Mintlify Search Tests |
| 2 | + |
| 3 | +These tests verify that our Mintlify search configuration (synonyms, boosts, and keywords) yields the most relevant pages for common Stellar developer queries. |
| 4 | + |
| 5 | +## Test Queries and Expected Results |
| 6 | + |
| 7 | +1. **`stealth`** |
| 8 | + - **Expected Result:** `How Stealth Payments Work` (or related stealth guides) |
| 9 | + - **Reasoning:** Tests the core concept. |
| 10 | + |
| 11 | +2. **`unlinkable`** |
| 12 | + - **Expected Result:** `How Stealth Payments Work` |
| 13 | + - **Reasoning:** Tests synonym mapping `stealth ↔ unlinkable`. |
| 14 | + |
| 15 | +3. **`meta-address`** |
| 16 | + - **Expected Result:** Stealth payments / Architecture overview |
| 17 | + - **Reasoning:** Tests core terminology. |
| 18 | + |
| 19 | +4. **`metaaddress`** |
| 20 | + - **Expected Result:** Stealth payments / Architecture overview |
| 21 | + - **Reasoning:** Tests synonym mapping `meta-address ↔ metaaddress ↔ meta address`. |
| 22 | + |
| 23 | +5. **`Soroban`** |
| 24 | + - **Expected Result:** `Stellar Contracts` |
| 25 | + - **Reasoning:** Tests synonym mapping `Soroban ↔ Stellar smart contract`. |
| 26 | + |
| 27 | +6. **`Stellar smart contract`** |
| 28 | + - **Expected Result:** `Stellar Contracts` |
| 29 | + - **Reasoning:** Ensures explicit terminology maps correctly. |
| 30 | + |
| 31 | +7. **`friendbot`** |
| 32 | + - **Expected Result:** Stellar testing/troubleshooting guides |
| 33 | + - **Reasoning:** Tests synonym mapping `friendbot ↔ testnet faucet`. |
| 34 | + |
| 35 | +8. **`testnet faucet`** |
| 36 | + - **Expected Result:** Stellar testing/troubleshooting guides |
| 37 | + - **Reasoning:** Tests synonym mapping for friendbot. |
| 38 | + |
| 39 | +9. **`XLM`** |
| 40 | + - **Expected Result:** Stellar core pages (Getting Started / Primitives) |
| 41 | + - **Reasoning:** Tests synonym mapping `XLM ↔ lumen`. |
| 42 | + |
| 43 | +10. **`lumen`** |
| 44 | + - **Expected Result:** Stellar core pages |
| 45 | + - **Reasoning:** Tests synonym mapping for XLM. |
| 46 | + |
| 47 | +11. **`Freighter`** |
| 48 | + - **Expected Result:** `Stellar Transaction Simulation` / Wallet guides |
| 49 | + - **Reasoning:** Tests synonym mapping `Freighter ↔ Stellar wallet`. |
| 50 | + |
| 51 | +12. **`Stellar wallet`** |
| 52 | + - **Expected Result:** `Stellar Transaction Simulation` / Wallet guides |
| 53 | + - **Reasoning:** Tests synonym mapping for Freighter. |
| 54 | + |
| 55 | +13. **`stellar.expert`** |
| 56 | + - **Expected Result:** `Stellar Troubleshooting Guide` or `Stellar Mainnet Deployment` |
| 57 | + - **Reasoning:** Tests frontmatter keyword injection for Stellar pages. |
| 58 | + |
| 59 | +14. **`path payment`** |
| 60 | + - **Expected Result:** `Stellar Custom Assets` or core Stellar guides |
| 61 | + - **Reasoning:** Tests frontmatter keyword injection for Stellar pages. |
| 62 | + |
| 63 | +15. **`getting started stellar`** |
| 64 | + - **Expected Result:** `Getting Started` |
| 65 | + - **Reasoning:** Tests page weighting (getting-started > guides > reference). The Overview section's `getting-started` page should appear first due to the boost weight `3`. |
| 66 | + |
| 67 | +## Acceptance Criteria Checklist |
| 68 | + |
| 69 | +- [x] Search analytics enabled in `docs.json` |
| 70 | +- [x] Synonyms configured for key Stellar terms |
| 71 | +- [x] Page weighting implemented to prioritize Getting Started and Guides |
| 72 | +- [x] Stellar keywords injected into `.mdx` frontmatter |
| 73 | +- [ ] Manual verification completed for each query above |
0 commit comments