0.1.1 • Published 10 months ago

hexo-algoliasearch-comment v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 months ago

hexo-algoliasearch

A plugin to index comments of your Hexo blog on Algolia

Installation

npm install hexo-algoliasearch-comment --save

If Hexo detect automatically all plugins, that's all.

If that is not the case, register the plugin in your _config.yml file :

plugins:
  - hexo-algoliasearch-comment

Configuration

You can configure this plugin in your _config.yml file :

algolia_comment:
  appId: "Z7A3XW4R2I"
  apiKey: "12db1ad54372045549ef465881c17e743"
  adminApiKey: "40321c7c207e7f73b63a19aa24c4761b"
  chunkSize: 5000
  indexName: "my-hexo-blog"
  fields:
    - name
    - message
    - path
    - date
    - url
KeyTypeDefaultDescription
appIdStringYour application ID.
apiKeyStringYour API key (read only). It is use to search in an index.
adminApiKeyStringYour adminAPI key. It is use to create, delete, update your indexes
chunkSizeNumber5000Records/comments are split in chunks to upload them. Algolia recommend to use 5000 for best performance. Be careful, if you are indexing comment content, It can fail because of size limit. To overcome this, decrease size of chunks until it pass.
indexNameStringThe name of the index in which comments are stored.
fieldsListThe list of the field names to index.

Usage

hexo algoliaComment

Options

OptionsDescription
-n, --no-clearDoes not clear the existing index
0.1.0

10 months ago

0.1.1

10 months ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.5

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago