0
0
bleve/README.md
Steve Yen a60ff96457 mention of license in README
For the folks like me who are too lazy to make just
one more click on LICENSE.
2014-08-29 07:34:15 -07:00

47 lines
1.3 KiB
Markdown

# ![bleve](docs/bleve.png) bleve
modern text indexing in go - [blevesearch.com](http://www.blevesearch.com/)
## 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
* Conjunction, Disjunction, Boolean
* Numeric Range, Date Range
* Simple query syntax for human entry
* Search result match highlighting
## Discussion
Discuss usage and development of bleve in the [google group](https://groups.google.com/forum/#!forum/bleve).
## Indexing
message := struct{
From: "marty.schoch@gmail.com",
Body: "bleve indexing is easy",
}
mapping := bleve.NewIndexMapping()
index, _ := bleve.New("example.bleve", mapping)
index.Index(message)
## Querying
index, _ := bleve.Open("example.bleve")
query := bleve.NewSyntaxQuery("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)