npm install hexo-generator-searchdb --save
- path - file path. Default is search.xml .
- field - the search scope you want to search, you can chose:
- post (Default) - will only covers all the posts of your blog.
- page - will only covers all the pages of your blog.
- all - will covers all the posts and pages of your blog.
- format - the form of the page contents, options are:
- html (Default) - original html string being minified.
- raw - markdown text of each posts or pages.
- excerpt - only collect excerpt.
- more - act as you think.
- limit - define the maximum number of posts being indexed, always prefer the newest.