Azure search support for Hexo.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit d4e1d48 Apr 15, 2017
Permalink
Failed to load latest commit information.
lib changed interface; allow order by date Oct 3, 2016
.gitignore Initial commit Sep 1, 2016
LICENSE Initial commit Sep 1, 2016
README.md Update README.md Apr 15, 2017
index.js init Sep 2, 2016
package.json revise the interface; allow sorting by date Oct 3, 2016

README.md

hexo-azuresearch

This Hexo plugin index your hexo blog and upload to Azure Search service.

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>"
  excerptLimit: 300
  analyzer: "zh-Hans.lucene" # optional

Run

This command will automatically re-generate the hexo site. You don't need to hexo clean.

hexo azuresearch