• Stars
    star
    120
  • Rank 295,983 (Top 6 %)
  • Language
    JavaScript
  • Created about 10 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An example app providing an HTTP/REST/JSON front-end to bleve

bleve-explorer

An example app providing an HTTP/REST/JSON front-end to bleve. It provides a REST API and an HTML interface to:

  • create/list/delete indexes
  • view index document count
  • view index mapping
  • index/delete documents
  • query indexes
  • monitor system performance

Watch a video introduction to bleve-explorer.

Building

go build -tags full

The -tags full is optional, but includes all the optional components of bleve.

Running

mkdir data
./bleve-explorer

This will use the default "data" dir for storing indexes. Once started you can access the web UI at http://localhost:8095/

REST API

Bleve explorer uses the handlers provided by the bleve.http package. The handlers are attached to the following URLs:

  • PUT /api/{indexName} - create new index
  • GET /api/{indexName} - get index details
  • DELETE /api/{indexName} - delete index
  • GET /api - list indexes
  • PUT /api/{indexName}/{docID} - index document
  • GET /api/{indexName}/_count - count documents in index
  • GET /api/{indexName}/{docID} - return stored fields of document
  • DELETE /api/{indexName}/{docID} - delete document
  • POST /api/{indexName}/_search - search index
  • GET /api/{indexName}/_fields - list fields used by documents in index
  • GET /api/{indexName}/{docID}/_debug - return rows in index related to document

Script to load documents

In the video introduction to bleve-explorer I ran a script to load a directory of JSON documents. Here is that script:

#!/bin/bash

for JsonFile in  *.json
do
    curl -X PUT http://localhost:8095/api/beer-search/$JsonFile -d @$JsonFile
done

Screenshots

Tabs showing operations available on an index

The monitoring capabilities

More Repositories

1

bleve

A modern text/numeric/geo-spatial/vector indexing library for go
Go
9,964
star
2

vellum

A Go library implementing a FST (finite state transducer)
Go
182
star
3

beer-search

example bleve application for indexing and search beers and breweries
JavaScript
90
star
4

segment

A Go library for performing Unicode Text Segmentation as described in Unicode Standard Annex #29
Go
88
star
5

hugoidx

An experimental app to build a Bleve search index from the pages of a Hugo site
JavaScript
59
star
6

blevex

Bleve Extensions
Go
46
star
7

bleve-mapping-ui

web-based UI editor for bleve index mappings
JavaScript
24
star
8

bleve-wiki-indexer

maintains a bleve index of markdown files in the specified directory, exposes search on port 8099
Go
24
star
9

snowballstem

Go stemmers generated by the Snowball project
Go
21
star
10

bleve-bench

A utility for benchmarking bleve performance under various configurations and workloads.
Go
15
star
11

bleve-hosted

A general purpose application which can be used to host read-only access to one or more Bleve indexes
Go
13
star
12

zapx

Zap file format compatible with a future version of Bleve
Go
10
star
13

sear

a Bleve index implementation designed for efficiently executing searches against a single document (or a sequence of documents one at a time)
Go
8
star
14

blevesearch.github.io-hugo

Hugo Source for blevesearch.github.io website
JavaScript
6
star
15

stempel

A Go implementation of the Stempel stemmer
Go
6
star
16

bleve_index_api

The Bleve internal index API
Go
5
star
17

zap

Zap segment plugin for Bleve Scorch indexes
Go
4
star
18

analysis-wizard

An interactive tool to explore text analysis behavior in Bleve
JavaScript
4
star
19

blevesearch.github.io

blevesearch website
HTML
3
star
20

gopherconin-search

A sample bleve application that indexes/searches the GopherCon India schedule
HTML
2
star
21

scorch_segment_api

The Scorch internal segment API
Go
2
star
22

upsidedown_store_api

The Upside Down key-value store API
Go
1
star
23

fosdem-search

bleve sample app to search FOSDEM schedule
JavaScript
1
star
24

fosdem15

Bleve presentation for FOSDEM'15
Go
1
star
25

gophercon15

Lightning talk given at GopherCon 15
Go
1
star