# 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

  1. If sitemap.json does not exist, all pages are indexable by default;
  2. {"action": "allow", "page": "*"} is the default rule with the lowest priority; any page not explicitly marked "disallow" is indexable by default;
  3. The sitemap.json file has a maximum size limit of 5120 UTF8 characters;
  4. For pages that should not be indexed by the platform, developers can also use sitemap.json to declare their handling.
© FinClip with ❤ , Since 2017