Coder Social home page Coder Social logo

bbadger's Introduction

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/alash3al/bbadger .

package main

import (
	"fmt"

	"github.com/alash3al/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)
}

bbadger's People

Contributors

alash3al avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bbadger's Issues

[BadgerDB] panic: Only one iterator can be active at one time

Hey there,

I've been adapting your fork to a database I'm making for work but it seems that a recent commit to BadgerDB is causing a panic on the Blevesearch tests.

Specifically, it's this commit dgraph-io/badger@b1ad1e9

in the TestReaderIsolation test, it fails with the panic:

panic: Only one iterator can be active at one time. [recovered]
	panic: Only one iterator can be active at one time.

This is because BadgerDB now panics if there are multiple iterators in a single transaction.

example

could you add a reasonable full example please ?

Incompatible with Badger v1.5.4

go get-ing the library results in this compilation error. Are you still developing this library?

go: finding github.com/alash3al/bbadger latest
# github.com/alash3al/bbadger
../../../go/pkg/mod/github.com/alash3al/[email protected]/reader.go:54:21: not enough arguments in call to r.txn.Commit
	have ()
	want (func(error))
../../../go/pkg/mod/github.com/alash3al/[email protected]/writer.go:35:13: not enough arguments in call to txn.Commit
	have ()
	want (func(error))

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.