Skip to content
/ bbadger Public
forked from alash3al/bbadger

adding badger support to blevesearch

Notifications You must be signed in to change notification settings

mosuka/bbadger

 
 

Repository files navigation

Bleve Badger Backend

Blevesearch kvstore implementation based on Badger forked from https://github.com/akhenakh/bleve/tree/badger with alot of improvements and fixes.

Usage

➜ go get github.com/mosuka/bbadger .

package main

import (
	"fmt"

	"github.com/mosuka/bbadger"
	"github.com/blevesearch/bleve"
)

func main() {
	// create/open bleveIndex
	index, err := bbadger.BleveIndex("/tmp/badger/indexName", bleve.NewIndexMapping())

    // index some data
    err = index.Index(identifier, your_data)

    // search for some text
    query := bleve.NewMatchQuery("text")
    search := bleve.NewSearchRequest(query)
    searchResults, err := index.Search(search)
}

About

adding badger support to blevesearch

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%