Local Search
Generate a local XML index and enable the Solitude 4 search module.
Install an XML search-index generator in the Hexo blog:
npm install hexo-generator-searchpnpm add hexo-generator-searchyarn add hexo-generator-searchConfigure Hexo _config.yml:
search:
path: search.xml
field: post
content: trueConfigure _config.solitude.yml:
search:
enable: true
type: local
tags: [Solitude, Hexo]
ai:
enable: true
url: https://example.com/ai-search
local:
preload: false
CDN: /search.xmlsearch.ai.url is an external link displayed in local search, not an AI request endpoint. After generation, verify /search.xml and search by title, tag, and body text.
