bleve 文本索引库 bleve

polaris • 7184 次点击    
这是一个分享于 的项目,其中的信息可能已经有所发展或是发生改变。
# ![bleve](http://www.blevesearch.com/img/bleve-icon-placard-small.png) bleve modern text indexing in go - [blevesearch.com](http://www.blevesearch.com/) Try out bleve live by [searching our wiki](http://wikisearch.blevesearch.com/search/). ## 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](https://github.com/blevesearch/bleve/wiki/Query-String-Query) 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](https://groups.google.com/forum/#!forum/bleve). ## 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, _ := bleve.New("example.bleve", mapping) 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 ## Status [![Build Status](https://drone.io/github.com/blevesearch/bleve/status.png)](https://drone.io/github.com/blevesearch/bleve/latest) [![Coverage Status](https://coveralls.io/repos/blevesearch/bleve/badge.png?branch=master)](https://coveralls.io/r/blevesearch/bleve?branch=master) 简单易用,功能强大。但目前不支持国语。CleverDeng 貌似有计划做这件事。
授权协议:
Apache
开发语言:
golang 查看源码»
操作系统:
跨平台
7184 次点击  ∙  1 赞  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传