Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

bleve

> 编程语言
Open source

A modern text/numeric/geo-spatial/vector indexing library for go

11.2K stars0 likes2 views
WebsiteGitHub

About

A modern text/numeric/geo-spatial/vector indexing library for go

bleve

A modern indexing + search library in GO

Features

  • Index any GO data structure or JSON
  • Intelligent defaults backed up by powerful configuration (scorch)
  • Supported field types:
    • text, number, datetime, boolean, geopoint, geoshape, IP, vector
  • Supported query types:
    • term, phrase, match, match_phrase, prefix, regexp, wildcard, fuzzy
    • term range, numeric range, date range, boolean field
    • compound queries: conjuncts, disjuncts, boolean (must/should/must_not)
    • query string syntax
    • geo spatial search
    • approximate k-nearest neighbors via vector search
    • synonym search
    • hierarchical nested search
  • tf-idf / bm25 scoring models
  • Hybrid search: exact + semantic
    • Supports RRF (Reciprocal Rank Fusion) and RSF (Relative Score Fusion)
  • Result pagination
  • Query time boosting
  • Search result match highlighting with document fragments
  • Aggregations/faceting support:
    • terms facet
    • numeric range facet
    • date range facet

Indexing

go
message := struct {
    Id   string
    From string
    Body string
}{
    Id:   "example",
    From: "[email protected]",
    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

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

Command Line Interface

To install the CLI for the latest release of bleve, run:

bash
go install github.com/blevesearch/bleve/v2/cmd/bleve@latest
…

Text Analysis

Bleve includes general-purpose analyzers (customizable) as well as pre-built text analyzers for the following languages:

Arabic (ar), Bulgarian (bg), Catalan (ca), Chinese-Japanese-Korean (cjk), Kurdish (ckb), Danish (da), German (de), Greek (el), English (en), Spanish - Castilian (es), Basque (eu), Persian (fa), Finnish (fi), French (fr), Gaelic (ga), Spanish - Galician (gl), Hindi (hi), Croatian (hr), Hungarian (hu), Armenian (hy), Indonesian (id, in), Italian (it), Dutch (nl), Norwegian (no), Polish (pl), Portuguese (pt), Romanian (ro), Russian (ru), Swedish (sv), Turkish (tr)

Text Analysis Wizard

bleveanalysis.couchbase.com

Discussion/Issues

Discuss usage/development of bleve and/or report issues here:

  • Github issues
  • Google group

License

Apache License Version 2.0

Issues· 296 open

View all issuesOpen on GitHub
  • #2402

    scorch: a failing merge is retried immediately and forever, so a corrupt segment becomes an endless write loop

    Updated Sep 24, 2026
  • #2390

    Compilation error in `geo/geojson` package: does not implement index.GeoJSON (missing method BoundingBox)

    Updated Aug 18, 2026
  • #2391

    Modernize codebase using go fix

    Updated Aug 10, 2026
  • #2384

    `BooleanQuery.Filter`: filter searcher isn't closed, and its errors are swallowed

    Updated Jul 24, 2026
  • #2362

    Bare "/" is treated as regex

    Updated Jun 29, 2026
  • #2223

    Use custom strings ordering when sorting

    Updated Jun 26, 2026
  • #2274

    Synonym search does not work with NewMemOnly

    Updated Jun 25, 2026
  • #2310

    how fix it?

    Updated May 4, 2026
  • #2292

    Proposal: Add Partial Update Feature to Bleve Index (Go)

    Updated Mar 4, 2026
  • #2287

    Cos Tchad

    Updated Feb 16, 2026

> Tags

Go

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言