0
0
Fork 0
bleve/README.md

54 lines
1.5 KiB
Markdown
Raw Normal View History

2014-07-31 16:58:20 +02:00
# ![bleve](docs/bleve.png) bleve
2014-04-17 22:55:53 +02:00
modern text indexing in go - [blevesearch.com](http://www.blevesearch.com/)
2014-07-31 16:58:20 +02:00
2014-09-04 20:43:25 +02:00
Try out bleve live by [searching our wiki](http://wikisearch.blevesearch.com/search/).
2014-07-31 16:58:20 +02:00
## Features
* Index any go data structure (including JSON)
* Intelligent defaults backed up by powerful configuration
* Supported field types:
2014-08-19 22:21:18 +02:00
* Text, Numeric, Date
2014-07-31 16:58:20 +02:00
* Supported query types:
* Term, Phrase, Match, Match Phrase
* Conjunction, Disjunction, Boolean
2014-08-19 22:21:18 +02:00
* Numeric Range, Date Range
2014-07-31 16:58:20 +02:00
* Simple query syntax for human entry
2014-09-04 20:31:26 +02:00
* tf-idf Scoring
2014-07-31 16:58:20 +02:00
* Search result match highlighting
2014-09-04 20:31:26 +02:00
* Supports Aggregating Facets:
* Terms Facet
* Numeric Range Facet
* Date Range Facet
2014-07-31 16:58:20 +02:00
## Discussion
Discuss usage and development of bleve in the [google group](https://groups.google.com/forum/#!forum/bleve).
2014-07-31 16:58:20 +02:00
## Indexing
message := struct{
From: "marty.schoch@gmail.com",
Body: "bleve indexing is easy",
}
mapping := bleve.NewIndexMapping()
index, _ := bleve.New("example.bleve", mapping)
2014-08-19 22:21:18 +02:00
index.Index(message)
2014-04-18 19:52:38 +02:00
2014-07-31 16:58:20 +02:00
## Querying
index, _ := bleve.Open("example.bleve")
2014-07-31 16:58:20 +02:00
query := bleve.NewSyntaxQuery("bleve")
searchRequest := bleve.NewSearchRequest(query)
searchResult, _ := index.Search(searchRequest)
## License
2014-07-31 16:58:20 +02:00
Apache License Version 2.0
2014-07-31 16:58:20 +02:00
## 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)