Commit 6fc2b51
Merge #822
822: docs: update README with SDK changes and add pagination examples r=Strift a=samuele-ruffino96
# Pull Request
## What does this PR do?
- Updates the README example code to show the necessity to cast the returned value (new `Searchable` interface) to `SearchResult`
- Adds a new comprehensive example demonstrating custom search with pagination
- Shows practical usage of pagination parameters like `setPage()` and `setHitsPerPage()`
- Includes example JSON response showing pagination metadata (totalPages, hitsPerPage, etc.)
## PR checklist
- [x] Changes are clearly described in the PR description above
- [ ] Contributing guidelines have been reviewed (needs confirmer)
- [x] PR title accurately describes changes: "fix(docs): update README example to reflect latest sdk changes"
Co-authored-by: samuele ruffino <[email protected]>
Co-authored-by: Laurent Cazanove <[email protected]>1 file changed
+36
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
219 | 251 | | |
220 | 252 | | |
221 | 253 | | |
| |||
0 commit comments