GithubHelp home page GithubHelp logo

robinthrift / jekyll---elasticsearch Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 3.0 142 KB

A very simple setup to index a Jekyll site and make it searchable. The search index can then ve accessed via a node proxy.

JavaScript 100.00%

jekyll---elasticsearch's Introduction

Ever wanted to make your Jekyll site searchable? Well, now you can!

Using the power of elasticsearch and Node!

For more info on this, and to find out how to set it up, read this blog post: Making Jekyll searchable with elasticearch;

In this repository you will find a little Jekyll template that will render a JSON file that is easily parsable and contains all the relevant information. This JSON file will then be used by indexer.js to index your site via the elasticsearch API. If you only changed a file, it will update the entry and not create a new one, preventing duplicate entries. See indexer.js for more info on how it works.

Then start search_server.js to act as a proxy between the client and elasticsearch. Make sure to add Header set Access-Control-Allow-Origin "domain:port" to your .htaccess.

Every time you update your Jekyll blog you will have to run node indexer.js in order to update the index.

In order to use the scripts, add your INDEX and TYPE to indexer.js and search_server.js. You will also have to edit the Access-Control-Allow-Origin in search_server.js to allow your client side code to access the proxy.

jekyll---elasticsearch's People

Contributors

trapvincenzo avatar case avatar robinthrift avatar

Stargazers

Kevin avatar Marco Spinello avatar Mr. Z. avatar fushang318 avatar Angus H. avatar Stephen McCullough avatar buhe avatar Joe Palala avatar Roland Quast avatar Josh Williams avatar Hannes Dorfmann avatar Alessandro Mascherpa avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.