Skip to content

Commit e67d2b7

Browse files
authored
Merge pull request #3539 from meilisearch/add-hydration-demo
Add hydration demo
2 parents c4b14f8 + 6e06cd4 commit e67d2b7

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

1.06 MB
Loading

docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,8 @@
10821082
"resources/demos/tenant_tokens",
10831083
"resources/demos/typo_tolerance",
10841084
"resources/demos/voice_search",
1085-
"resources/demos/rubygems"
1085+
"resources/demos/rubygems",
1086+
"resources/demos/hydration"
10861087
]
10871088
},
10881089
{

resources/demos/hydration.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Hydration
3+
sidebarTitle: Hydration
4+
description: Search results enriched with related data from other indexes using foreign keys
5+
---
6+
7+
<Info>
8+
**Live demo**: [demo-hydration.vercel.app/](https://demo-hydration.vercel.app/)
9+
</Info>
10+
11+
Demonstrates how Meilisearch's foreign keys feature automatically replaces foreign IDs in search results with full documents from a referenced index.
12+
13+
![Hydration demo showing search results enriched with related data](/assets/images/demos/hydration-demo.png)
14+
15+
## Links
16+
17+
<CardGroup cols={2}>
18+
<Card title="Try the demo" icon="globe" href="https://demo-hydration.vercel.app/">
19+
See hydration in action
20+
</Card>
21+
<Card title="Hydration guide" icon="circle-nodes" href="/capabilities/indexing/how_to/document_relations">
22+
Configure foreign keys in your index
23+
</Card>
24+
</CardGroup>

0 commit comments

Comments
 (0)