hexo-azuresearch
This Hexo plugin index your hexo blog and upload to Azure Search service, based on hexo-algoliasearch by Louis Barranqueiro.
For detailed setup procedures, please follow this tutorial: https://artifact.me/universal-search-5-azure-search/.
Install
npm install --save hexo-azuresearch
Config
Add the following lines in your hexo global _config.yml
. The analyzer field is optional, please refer to https://msdn.microsoft.com/en-us/library/azure/dn879793.aspx for a list of supported languages. In the following example I use Simplified Chinese.
AzureSearch:
serviceURL: "<your-azure-search-service-url>"
indexName: "<choose-a-index-name>"
adminKey: "<your-azure-search-primary-admin-key>"
analyzer: "zh-Hans.lucene"
fields:
- title
- excerpt:strip
- content:strip
- permalink
- path
Run
This command will automatically first clean then re-generate your hexo site. You DON'T need to hexo clean
first.
hexo azuresearch