constructor ({
    path = '',
    unescape = false,
    top_n_per_article = 1
  }) {
    this.path = path
    this.unescape = unescape
    this.top_n_per_article = top_n_per_article
    this.isfetched = false
    this.datas = null
  }
Refer to hexo-generator-searchdb
https://github.com/next-theme/hexo-generator-searchdb/blob/main/dist/search.js
Modified by hexo-theme-butterfly