{"id":13408051,"url":"https://github.com/blevesearch/bleve","last_synced_at":"2025-05-12T16:17:58.117Z","repository":{"id":16147770,"uuid":"18893367","full_name":"blevesearch/bleve","owner":"blevesearch","description":"A modern text/numeric/geo-spatial/vector indexing library for go","archived":false,"fork":false,"pushed_at":"2025-05-05T08:48:42.000Z","size":17223,"stargazers_count":10352,"open_issues_count":294,"forks_count":694,"subscribers_count":237,"default_branch":"master","last_synced_at":"2025-05-05T14:14:11.415Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blevesearch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-04-17T21:02:18.000Z","updated_at":"2025-05-05T13:26:51.000Z","dependencies_parsed_at":"2023-02-11T22:45:21.020Z","dependency_job_id":"eb6970c4-7bbd-4983-964c-973bac03636c","html_url":"https://github.com/blevesearch/bleve","commit_stats":{"total_commits":2031,"total_committers":90,"mean_commits":"22.566666666666666","dds":0.5322501230920729,"last_synced_commit":"840fde53f491d2a7611a07ab1cf69bff06a47622"},"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blevesearch%2Fbleve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blevesearch%2Fbleve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blevesearch%2Fbleve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blevesearch%2Fbleve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blevesearch","download_url":"https://codeload.github.com/blevesearch/bleve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253774592,"owners_count":21962199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T20:00:50.421Z","updated_at":"2025-05-12T16:17:58.095Z","avatar_url":"https://github.com/blevesearch.png","language":"Go","readme":"# ![bleve](docs/bleve.png) bleve\n\n[![Tests](https://github.com/blevesearch/bleve/actions/workflows/tests.yml/badge.svg?branch=master\u0026event=push)](https://github.com/blevesearch/bleve/actions/workflows/tests.yml?query=event%3Apush+branch%3Amaster)\n[![Coverage Status](https://coveralls.io/repos/github/blevesearch/bleve/badge.svg?branch=master)](https://coveralls.io/github/blevesearch/bleve?branch=master)\n[![Go Reference](https://pkg.go.dev/badge/github.com/blevesearch/bleve/v2.svg)](https://pkg.go.dev/github.com/blevesearch/bleve/v2)\n[![Join the chat](https://badges.gitter.im/join_chat.svg)](https://app.gitter.im/#/room/#blevesearch_bleve:gitter.im)\n[![codebeat](https://codebeat.co/badges/38a7cbc9-9cf5-41c0-a315-0746178230f4)](https://codebeat.co/projects/github-com-blevesearch-bleve)\n[![Go Report Card](https://goreportcard.com/badge/github.com/blevesearch/bleve/v2)](https://goreportcard.com/report/github.com/blevesearch/bleve/v2)\n[![Sourcegraph](https://sourcegraph.com/github.com/blevesearch/bleve/-/badge.svg)](https://sourcegraph.com/github.com/blevesearch/bleve?badge)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nA modern indexing + search library in GO\n\n## Features\n\n* Index any GO data structure or JSON\n* Intelligent defaults backed up by powerful configuration ([scorch](https://github.com/blevesearch/bleve/blob/master/index/scorch/README.md))\n* Supported field types:\n    * `text`, `number`, `datetime`, `boolean`, `geopoint`, `geoshape`, `IP`, `vector`\n* Supported query types:\n    * `term`, `phrase`, `match`, `match_phrase`, `prefix`, `regexp`, `wildcard`, `fuzzy`\n    * term range, numeric range, date range, boolean field\n    * compound queries: `conjuncts`, `disjuncts`, boolean (`must`/`should`/`must_not`)\n    * [query string syntax](http://www.blevesearch.com/docs/Query-String-Query/)\n    * [geo spatial search](https://github.com/blevesearch/bleve/blob/master/geo/README.md)\n    * approximate k-nearest neighbors via [vector search](https://github.com/blevesearch/bleve/blob/master/docs/vectors.md)\n    * [synonym search](https://github.com/blevesearch/bleve/blob/master/docs/synonyms.md)\n* [tf-idf](https://github.com/blevesearch/bleve/blob/master/docs/scoring.md#tf-idf) / [bm25](https://github.com/blevesearch/bleve/blob/master/docs/scoring.md#bm25) scoring models\n* Hybrid search: exact + semantic\n* Query time boosting\n* Search result match highlighting with document fragments\n* Aggregations/faceting support:\n    * terms facet\n    * numeric range facet\n    * date range facet\n\n## Indexing\n\n```go\nmessage := struct{\n\tId   string\n\tFrom string\n\tBody string\n}{\n\tId:   \"example\",\n\tFrom: \"xyz@couchbase.com\",\n\tBody: \"bleve indexing is easy\",\n}\n\nmapping := bleve.NewIndexMapping()\nindex, err := bleve.New(\"example.bleve\", mapping)\nif err != nil {\n\tpanic(err)\n}\nindex.Index(message.Id, message)\n```\n\n## Querying\n\n```go\nindex, _ := bleve.Open(\"example.bleve\")\nquery := bleve.NewQueryStringQuery(\"bleve\")\nsearchRequest := bleve.NewSearchRequest(query)\nsearchResult, _ := index.Search(searchRequest)\n```\n\n## Command Line Interface\n\nTo install the CLI for the latest release of bleve, run:\n\n```bash\n$ go install github.com/blevesearch/bleve/v2/cmd/bleve@latest\n```\n\n```\n$ bleve --help\nBleve is a command-line tool to interact with a bleve index.\n\nUsage:\n  bleve [command]\n\nAvailable Commands:\n  bulk        bulk loads from newline delimited JSON files\n  check       checks the contents of the index\n  count       counts the number documents in the index\n  create      creates a new index\n  dictionary  prints the term dictionary for the specified field in the index\n  dump        dumps the contents of the index\n  fields      lists the fields in this index\n  help        Help about any command\n  index       adds the files to the index\n  mapping     prints the mapping used for this index\n  query       queries the index\n  registry    registry lists the bleve components compiled into this executable\n  scorch      command-line tool to interact with a scorch index\n\nFlags:\n  -h, --help   help for bleve\n\nUse \"bleve [command] --help\" for more information about a command.\n```\n\n## Text Analysis\n\nBleve includes general-purpose analyzers (customizable) as well as pre-built text analyzers for the following languages:\n\nArabic (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)\n\n## Text Analysis Wizard\n\n[bleveanalysis.couchbase.com](https://bleveanalysis.couchbase.com)\n\n## Discussion/Issues\n\nDiscuss usage/development of bleve and/or report issues here:\n* [Github issues](https://github.com/blevesearch/bleve/issues)\n* [Google group](https://groups.google.com/forum/#!forum/bleve)\n\n## License\n\nApache License Version 2.0\n","funding_links":[],"categories":["Libraries","Go","开源类库","数据结构与算法","Database Drivers","Open Sources","Multidimensional data / Vectors","Open source library","Data Structures and Algorithms","Data Integration Frameworks","others","数据库驱动","Generators","數據庫驅動","Programming Languages","\u003cspan id=\"数据库驱动-database-drivers\"\u003e数据库驱动 Database Drivers\u003c/span\u003e","数据库驱动`连接和操作数据库工具`","NoSQL Databases"],"sub_categories":["文本处理","文本分析","Advanced Console UIs","Word Processing","Text Analysis","高級控制台界面","Go","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","高级控制台界面","SQL 查询语句构建库"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblevesearch%2Fbleve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblevesearch%2Fbleve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblevesearch%2Fbleve/lists"}