A modern text indexing library for go
Go Other
Clone or download
sreekanth-cb Merge pull request #956 from sreekanth-cb/reduce_pause_persister
MB-29923 - high memory consumption in scorch
Latest commit 09037d1 Jul 19, 2018
Permalink
Failed to load latest commit information.
analysis Fix another spelling for CI May 30, 2018
cmd/bleve Fix spelling and typo mistakes May 30, 2018
config make new analyzers available to consumers of the config pkg Jan 11, 2018
docs nicer formatting of license header Oct 2, 2016
document MB-28847: Account for total documents' size within a batch Apr 9, 2018
geo Fix spelling and typo mistakes May 30, 2018
http disable http unit test which relied on debug functionality Dec 11, 2017
index Merge pull request #956 from sreekanth-cb/reduce_pause_persister Jul 19, 2018
mapping Merge pull request #953 from abhinavdangeti/omitempty-default_analyzer Jun 27, 2018
numeric Fix spelling and typo mistakes May 30, 2018
registry optimize FacetsBuilder with cached fields & avoid some allocs Oct 25, 2016
search Merge pull request #936 from sreekanth-cb/geo_use_dvReader Jul 19, 2018
size Include missing initialization for size entry of integers Apr 24, 2018
test MB-29923 - high memory consumption in scorch Jul 19, 2018
vendor Adding RoaringBitmap/roaring to the bleve vendor manifest Mar 9, 2018
.gitignore initial refactor of query into separate package Sep 29, 2016
.travis.yml errCheck to ignore fmt pkg during checks that travis-ci performs May 17, 2018
CONTRIBUTING.md adding CONTRIBUTING.md to repo Jun 26, 2016
LICENSE adding license file Apr 17, 2014
README.md Fix coverage badge in README Jan 16, 2018
config.go switch back to upsidedown as default index before merge to master Jan 5, 2018
config_app.go nicer formatting of license header Oct 2, 2016
config_disk.go nicer formatting of license header Oct 2, 2016
doc.go nicer formatting of license header Oct 2, 2016
error.go nicer formatting of license header Oct 2, 2016
examples_test.go additional golint cleanups Oct 2, 2016
index.go MB-28847: Account for total documents' size within a batch Apr 9, 2018
index_alias.go nicer formatting of license header Oct 2, 2016
index_alias_impl.go BREAKING API CHANGE - use stdlib context pkg Feb 27, 2018
index_alias_impl_test.go Fix spelling and typo mistakes May 30, 2018
index_impl.go Micro optimizations while estimating mem needed for search May 1, 2018
index_meta.go use filepath.Join instead, safer and cross-platform Apr 29, 2018
index_meta_test.go nicer formatting of license header Oct 2, 2016
index_stats.go nicer formatting of license header Oct 2, 2016
index_test.go Fix spelling and typo mistakes May 30, 2018
mapping.go add experimental support for indexing/query geo points Mar 25, 2017
query.go typo in documentation Nov 21, 2017
search.go MB-28163: Provide an API to estimate the RAM needed for SearchResult Mar 7, 2018
search_test.go Fix to boolean searcher's Advance() Jul 12, 2018

README.md

bleve bleve

Build Status Coverage Status GoDoc Join the chat at https://gitter.im/blevesearch/bleve codebeat Go Report Card Sourcegraph License

modern text indexing in go - blevesearch.com

Try out bleve live by searching the bleve website.

Features

  • Index any go data structure (including JSON)
  • Intelligent defaults backed up by powerful configuration
  • Supported field types:
    • Text, Numeric, Date
  • Supported query types:
    • Term, Phrase, Match, Match Phrase, Prefix
    • Conjunction, Disjunction, Boolean
    • Numeric Range, Date Range
    • Simple query syntax for human entry
  • tf-idf Scoring
  • Search result match highlighting
  • Supports Aggregating Facets:
    • Terms Facet
    • Numeric Range Facet
    • Date Range Facet

Discussion

Discuss usage and development of bleve in the google group.

Indexing

message := struct{
	Id   string
	From string
	Body string
}{
	Id:   "example",
	From: "marty.schoch@gmail.com",
	Body: "bleve indexing is easy",
}

mapping := bleve.NewIndexMapping()
index, err := bleve.New("example.bleve", mapping)
if err != nil {
	panic(err)
}
index.Index(message.Id, message)

Querying

index, _ := bleve.Open("example.bleve")
query := bleve.NewQueryStringQuery("bleve")
searchRequest := bleve.NewSearchRequest(query)
searchResult, _ := index.Search(searchRequest)

License

Apache License Version 2.0