talira

Full-text, geo and vector search library for Go

open sourceApache-2.0free

Bleve is an open source indexing and search library for Go: import one package, index any Go data structure or JSON, and query it, with no separate search server. Fields can be text, numbers, dates, booleans, geo points and shapes, IP addresses and vectors; queries cover term, phrase, match, prefix, regexp, wildcard and fuzzy, ranges, boolean compounds and a query string syntax, plus geospatial search, approximate k-nearest-neighbour vector search, synonyms and hybrid exact and semantic search fused with RRF or RSF. Results are scored with tf-idf or BM25, with boosting, highlighting, pagination and faceting, and text analyzers cover about 30 languages. It's under the Apache 2.0 licence.

Problems it solves

  • add full-text search to my Go program without running Elasticsearch
  • search documents by text, location and vector similarity inside one Go binary
  • index JSON records and query them with fuzzy matching and facets in Go

Features

  • embedded indexing of Go structs and JSON
  • full-text, fuzzy, regexp and query string search
  • geospatial search
  • approximate k-NN vector search
  • hybrid search with RRF and RSF
  • tf-idf and BM25 scoring
  • faceting and highlighting
  • analyzers for about 30 languages

Alternatives

The same job

These do what Bleve does.

  1. Apache Lucene A high-performance, full-featured text search engine library written in Java
  2. Manticore Search Fast open source search database for full-text, vector and hybrid search, an Elasticsearch alternative
  3. ParadeDB Postgres for full-text search, vector retrieval and aggregations, as an extension (pg_search)

Compare Bleve with the top 3