All Projects → wzpan → Hexo Generator Search

wzpan / Hexo Generator Search

Licence: mit
A plugin to generate search data for Hexo.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hexo Generator Search

Bitfunnel
A signature-based search engine
Stars: ✭ 313 (-1.57%)
Mutual labels:  search, search-engine
Search Engine Parser
Lightweight package to query popular search engines and scrape for result titles, links and descriptions
Stars: ✭ 216 (-32.08%)
Mutual labels:  search, search-engine
Vectorai
Vector AI — A platform for building vector based applications. Encode, query and analyse data using vectors.
Stars: ✭ 195 (-38.68%)
Mutual labels:  search, search-engine
Rusticsearch
Lightweight Elasticsearch compatible search server.
Stars: ✭ 171 (-46.23%)
Mutual labels:  search, search-engine
Redisearch
A query and indexing engine for Redis, providing secondary indexing, full-text search, and aggregations.
Stars: ✭ 3,393 (+966.98%)
Mutual labels:  search, search-engine
Vim Ags
Silver searcher plugin for vim
Stars: ✭ 179 (-43.71%)
Mutual labels:  search, plugin
Scout
RESTful search server written in Python, powered by SQLite.
Stars: ✭ 213 (-33.02%)
Mutual labels:  search, search-engine
Search
An Open Source Search Engine
Stars: ✭ 139 (-56.29%)
Mutual labels:  search, search-engine
Searchcode Server
The offical home of searchcode-server where you can run searchcode locally. Note that master is generally unstable in the sense that it is not a release. Check releases for release versions https://github.com/boyter/searchcode-server/releases
Stars: ✭ 262 (-17.61%)
Mutual labels:  search, search-engine
Darksearch
🔍 Search engine for hidden material. Scraping dark web onions, irc logs, deep web etc...
Stars: ✭ 260 (-18.24%)
Mutual labels:  search, search-engine
Vim Subversive
Vim plugin providing operator motions to quickly replace text
Stars: ✭ 168 (-47.17%)
Mutual labels:  search, plugin
Toshi
A full-text search engine in rust
Stars: ✭ 3,373 (+960.69%)
Mutual labels:  search, search-engine
Awesome Deep Learning Papers For Search Recommendation Advertising
Awesome Deep Learning papers for industrial Search, Recommendation and Advertising. They focus on Embedding, Matching, Ranking (CTR prediction, CVR prediction), Post Ranking, Transfer, Reinforcement Learning, Self-supervised Learning and so on.
Stars: ✭ 136 (-57.23%)
Mutual labels:  search, search-engine
Lolcate Rs
Lolcate -- A comically fast way of indexing and querying your filesystem. Replaces locate / mlocate / updatedb. Written in Rust.
Stars: ✭ 191 (-39.94%)
Mutual labels:  search, search-engine
Ambar
🔍 Ambar: Document Search Engine
Stars: ✭ 1,829 (+475.16%)
Mutual labels:  search, search-engine
Tntsearch
A fully featured full text search engine written in PHP
Stars: ✭ 2,693 (+746.86%)
Mutual labels:  search, search-engine
Rated Ranking Evaluator
Search Quality Evaluation Tool for Apache Solr & Elasticsearch search-based infrastructures
Stars: ✭ 134 (-57.86%)
Mutual labels:  search, search-engine
Sonic
🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.
Stars: ✭ 12,347 (+3782.7%)
Mutual labels:  search, search-engine
indieweb-search
Source code for the IndieWeb search engine.
Stars: ✭ 16 (-94.97%)
Mutual labels:  search, search-engine
Go Cyber
Your 🔵 Superintelligence
Stars: ✭ 270 (-15.09%)
Mutual labels:  search, search-engine

hexo-generator-search

npm npm

Generate search data for Hexo 3.x and 4.x. This plugin is used for generating a search index file, which contains all the neccessary data of your articles that you can use to write a local search engine for your blog. Supports both XML and JSON format output.

Install

$ npm install hexo-generator-search --save

Options

You can configure this plugin in your root _config.yml.

search:
  path: search.xml
  field: post
  content: true
  • path - file path. By default is search.xml . If the file extension is .json, the output format will be JSON. Otherwise XML format file will be exported.
  • 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.
  • content - whether contains the whole content of each article. If false, the generated results only cover title and other meta info without mainbody. By default is true.

Exclude indexing

To exclude a certain post or page from being indexed, you can simply insert indexing: false setting at the top of its front-matter, e.g.:

title: "Code Highlight"
date: "2014-03-15 20:17:16"
tags: highlight
categories: Demo
description: "A collection of Hello World applications from helloworld.org."
toc: true
indexing: false
---

Then the generated result will not contain this post or page.

FAQ

What's this plugin supposed to do?

This plugin is used for generating a xml / json file from your Hexo blog that provides data for searching.

Where's this file saved to?

After executing hexo g you will get the generated result at your public folder.

How to use this plugin in my Hexo blog?

You have two choices:

  • you don't want to write search engine by yourself. There are many themes that take use this plugin for local searching that works out of box.
  • you are familiar with Ajax and jQuery and would like to write your own search engine. You can implement one by yourself according to the example theme I give. Read the source code of this theme. Generally there are 3 steps:
    1. write a search view. This is the place for displaying a search form and search results ;
    2. write a search script. This script tells the browser how to grab search data and filter out contents what we're searching;
    3. tell hexo to connect the above two part.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].