# sitemap Configuration
FinClip now supports in-app search for Mini-Programs. Developers can configure whether their Mini-Program pages are allowed to be indexed by setting up sitemap.json. FinClip uses crawlers to index Mini-Program page content. When a user's search query triggers this index, the Mini-Program pages may appear in the search results.
# 1. sitemap Configuration
The sitemap.json file located in the root directory of the Mini-Program is used to configure whether the Mini-Program and its pages are allowed to be indexed by FinClip.
For the complete configuration reference, please see sitemap Configuration
# Example 1
{
"rules":[{
"action": "allow",
"page": "*"
}]
}
All pages will be indexed by FinClip (default behavior)
# Example 2
{
"rules":[{
"action": "disallow",
"page": "path/to/page"
}]
}
Configure the path/to/page page not to be indexed, while allowing all other pages to be indexed
# Example 3
{
"rules":[{
"action": "allow",
"page": "path/to/page"
}, {
"action": "disallow",
"page": "*"
}]
}
Configure the path/to/page page to be indexed, while all other pages are not indexed
# 2. Special Case Notes
- If
sitemap.jsondoes not exist, all pages are indexable by default; {"action": "allow", "page": "*"}is the default rule with the lowest priority; any page not explicitly marked"disallow"is indexable by default;- The
sitemap.jsonfile has a maximum size limit of5120UTF8 characters; - For pages that should not be indexed by the platform, developers can also use
sitemap.jsonto declare their handling.