Merge pull request #924 from zanllp/docs/fix-url-encoding-example

docs: fix URL encoding example with correct keywords
chore/optimize-db-backup
zanllp 2026-02-22 13:32:36 +08:00 committed by GitHub
commit 230b394f4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -331,8 +331,8 @@ The `props` parameter must be URL-encoded JSON. Use this encoding method:
```bash ```bash
# Search for "太空电梯" OR "三体" # Search for "太空电梯" OR "三体"
# JSON: {"substr":"(太空电梯|三体)","isRegex":true} # JSON: {"substr":"(太空电梯|三体)","isRegex":true}
# Encoded: %7B%22substr%22%3A%22(%E6%B1%89%E6%9C%8D%7C%E4%BA%BA%E5%A6%BB)%22%2C%22isRegex%22%3Atrue%7D # Encoded: %7B%22substr%22%3A%22(%E5%A4%AA%E7%A9%BA%E7%94%B5%E6%A2%AF%7C%E4%B8%89%E4%BD%93)%22%2C%22isRegex%22%3Atrue%7D
?action=pane&type=fuzzy-search&props=%7B%22substr%22%3A%22(%E6%B1%89%E6%9C%8D%7C%E4%BA%BA%E5%A6%BB)%22%2C%22isRegex%22%3Atrue%7D ?action=pane&type=fuzzy-search&props=%7B%22substr%22%3A%22(%E5%A4%AA%E7%A9%BA%E7%94%B5%E6%A2%AF%7C%E4%B8%89%E4%BD%93)%22%2C%22isRegex%22%3Atrue%7D
``` ```
### Available View Options ### Available View Options

View File

@ -21,7 +21,7 @@ curl -X POST http://127.0.0.1:<port>/infinite_image_browsing/db/search_by_substr
-d '{"regexp": "(sunset|beach)", "size": 50}' -d '{"regexp": "(sunset|beach)", "size": 50}'
# Generate URL with regex mode # Generate URL with regex mode
?action=pane&type=fuzzy-search&props=%7B%22substr%22%3A%22(%E6%B1%89%E6%9C%8D%7C%E4%B8%89%E4%BD%93)%22%2C%22isRegex%22%3Atrue%7D ?action=pane&type=fuzzy-search&props=%7B%22substr%22%3A%22(%E5%A4%AA%E7%A9%BA%E7%94%B5%E6%A2%AF%7C%E4%B8%89%E4%BD%93)%22%2C%22isRegex%22%3Atrue%7D
``` ```
### 2. Multiple Sequential Searches ### 2. Multiple Sequential Searches