Skip to content
A modern text indexing library for go
Go Other
  1. Go 99.8%
  2. Other 0.2%
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
analysis MB-33617: Support unicode strings with combining characters Jun 3, 2019
cmd/bleve dict cmd additions Feb 19, 2019
config Include missing token filters Jul 2, 2019
docs nicer formatting of license header Oct 2, 2016
document add method to access analyzer of a text field (#1276) Aug 12, 2019
geo Merge pull request #1327 from sreekanth-cb/parse Jan 15, 2020
http
index Fix concurrent read write on analysis Jan 16, 2020
mapping
numeric MB-33455: improve ComputeGeoRange() performance Mar 26, 2019
registry optimize FacetsBuilder with cached fields & avoid some allocs Oct 25, 2016
search Merge pull request #1334 from sreekanth-cb/pagination Feb 7, 2020
size Include missing initialization for size entry of integers Apr 24, 2018
test Enabling score/id based search_after/before paginations Feb 6, 2020
vendor update manifest to fix issue with vellum (#1338) Feb 17, 2020
.gitignore initial refactor of query into separate package Sep 29, 2016
.travis.yml Update .travis.yml to run for go versions 1.12.x and 1.13.x (latest) Jan 3, 2020
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
config_app.go nicer formatting of license header Oct 2, 2016
config_disk.go
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 Reset stats: lastDocSize, totalSize in batch's Reset() Apr 25, 2019
index_alias.go nicer formatting of license header Oct 2, 2016
index_alias_impl.go support search after style pagination (#1182) May 29, 2019
index_alias_impl_test.go Fix spelling and typo mistakes May 30, 2018
index_impl.go support search after style pagination (#1182) May 29, 2019
index_meta.go
index_meta_test.go nicer formatting of license header Oct 2, 2016
index_stats.go
index_test.go fix data race with batch reset (#1150) Mar 3, 2019
mapping.go add experimental support for indexing/query geo points Mar 25, 2017
query.go typo in documentation Nov 21, 2017
search.go add missing setter method for SetSearchBefore (#1237) Jun 10, 2019
search_test.go Fix typos/commentary Oct 28, 2019

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

You can’t perform that action at this time.