GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mkawserm/bdodb: bdodb is a badger based backend database for bleve

BranchesTags
Open more actions menu

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
VERSION
VERSION
 
 
bdodb.go
bdodb.go
 
 
bdodb_test.go
bdodb_test.go
 
 
config.go
config.go
 
 
doc.go
doc.go
 
 
doc_test.go
doc_test.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
iterator.go
iterator.go
 
 
logger.go
logger.go
 
 
logger_test.go
logger_test.go
 
 
reader.go
reader.go
 
 
store.go
store.go
 
 
store_test.go
store_test.go
 
 
writer.go
writer.go
 
 

Repository files navigation

bdodb

GoDoc Build Status Go Report Card Coverage Status


Package bdodb is a badger based backend database for bleve with all the customization options provided by the badger

Usage

➜ go get github.com/mkawserm/bdodb

package main

import (
    "fmt"
    "github.com/blevesearch/bleve"
    "github.com/blevesearch/bleve/index/upsidedown"
    "github.com/mkawserm/bdodb"
)

func main() { 
    // create or open bleveIndex
    index, err := bdodb.BleveIndex("/tmp/bdodb", bleve.NewIndexMapping(), upsidedown.Name, nil)
    
    message := struct{
        Id   string
        Body string
    }{
        Id:   "custom_id", 
        Body: "bleve indexing with badger using bdodb",
    }
    
    // index message data 
    err = index.Index(message.Id, message)
    if err !=nil {
        panic(err)
    }
    
    // search for some text 
    query := bleve.NewQueryStringQuery("bdodb")
    search := bleve.NewSearchRequest(query)
    if searchResults, err := index.Search(search); err == nil {
        fmt.Println(searchResults)
    } else {
        fmt.Println(err)
    }
}

About

bdodb is a badger based backend database for bleve

Topics

bleveblevesearchdatabasefulltext-searchfulltextsearchgolanggolang-package

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.