Git Product home page Git Product logo

bleve-wiki-indexer's Introduction

RETIRED

This bleve example appplication has been retired. It will be left in place for the time being, but is not longer updated to work with the current codebase.

bleve-wiki-indexer

Search the bleve wiki

This application uses the bleve library to build an index of the bleve wiki.

The application monitors the specified directory for changes, and upon finiding changes it reindexes those files. Keeping the directory up to date is the responsibility of another application.

The application exposes a search interface on port 8099.

Building

Building this can be a bit challenging.

The first step is get a happy installation of git2go.

    $ go get -d github.com/libgit2/git2go
    $ cd $GOPATH/src/github.com/libgit2/git2go
    $ git submodule update --init
    $ make install

Next, get the bleve-wiki-indexer.

    $ go get github.com/blevesearch/bleve-wiki-indexer

NOTE: the production version is built with -tags full build tag. This enables the leveldb storage engine, and the english text analyzer. If you have problems building bleve with that build tag, please raise issues in the bleve project.

Running

Acquire the source to the wiki you want to index.

    $ git clone https://github.com/blevesearch/bleve.wiki.git

Run the bleve-wiki-indexer.

    $ cd $GOPATH/src/github.com/blevesearch/bleve-wiki-indexer
    $ bleve-wiki-indexer -dir /path/to/bleve.wiki

Running from the bleve-wiki-indexer source directory enures the static content is found by default. If you want to run it from somewhere else, use the -static flag to point to the static content. This will store the index in a directory wiki.bleve by default, but can be changed with command-line options.

The program will run continuously, monitoring for changes in the /path/to/bleve.wiki. If you update the live wiki, then in another terminal do a git pull the bleve-wiki-indexer should see the changes and begin indexing them shortly.

The program exposes a web UI at:

    http://localhost:8099/

It also exposes the standard bleve.http.SearchHandler at:

    http://localhost:8099/api/search

Status

Build Status

bleve-wiki-indexer's People

Contributors

lgs avatar mschoch 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.