• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

analysis/H03-May-2022-

cmd/bleve/H27-Feb-2018-

config/H27-Feb-2018-

docs/H03-May-2022-

document/H27-Feb-2018-

geo/H27-Feb-2018-

http/H27-Feb-2018-

index/H27-Feb-2018-

mapping/H27-Feb-2018-

numeric/H27-Feb-2018-

registry/H27-Feb-2018-

search/H27-Feb-2018-

test/H27-Feb-2018-

vendor/H27-Feb-2018-

.gitignoreH A D27-Feb-2018269

.travis.ymlH A D27-Feb-2018509

CONTRIBUTING.mdH A D27-Feb-20181,015

LICENSEH A D27-Feb-201811.1 KiB

README.mdH A D27-Feb-20182.5 KiB

config.goH A D27-Feb-20182.3 KiB

config_app.goH A D27-Feb-2018784

config_disk.goH A D27-Feb-2018851

doc.goH A D27-Feb-20181.2 KiB

error.goH A D27-Feb-20181.9 KiB

examples_test.goH A D27-Feb-201810.9 KiB

index.goH A D27-Feb-20189 KiB

index_alias.goH A D27-Feb-20181.3 KiB

index_alias_impl.goH A D27-Feb-201811.8 KiB

index_alias_impl_test.goH A D27-Feb-201831.2 KiB

index_impl.goH A D27-Feb-201816.8 KiB

index_meta.goH A D27-Feb-20182.4 KiB

index_meta_test.goH A D27-Feb-20181.4 KiB

index_stats.goH A D27-Feb-20181.7 KiB

index_test.goH A D27-Feb-201837 KiB

mapping.goH A D27-Feb-20182.2 KiB

query.goH A D27-Feb-20188.1 KiB

search.goH A D27-Feb-201813.8 KiB

search_test.goH A D27-Feb-20188.3 KiB

README.md

1# ![bleve](docs/bleve.png) bleve
2
3[![Build Status](https://travis-ci.org/blevesearch/bleve.svg?branch=master)](https://travis-ci.org/blevesearch/bleve) [![Coverage Status](https://coveralls.io/repos/github/blevesearch/bleve/badge.svg?branch=master)](https://coveralls.io/github/blevesearch/bleve?branch=master) [![GoDoc](https://godoc.org/github.com/blevesearch/bleve?status.svg)](https://godoc.org/github.com/blevesearch/bleve)
4[![Join the chat at https://gitter.im/blevesearch/bleve](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/blevesearch/bleve?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5[![codebeat](https://codebeat.co/badges/38a7cbc9-9cf5-41c0-a315-0746178230f4)](https://codebeat.co/projects/github-com-blevesearch-bleve)
6[![Go Report Card](https://goreportcard.com/badge/blevesearch/bleve)](https://goreportcard.com/report/blevesearch/bleve)
7[![Sourcegraph](https://sourcegraph.com/github.com/blevesearch/bleve/-/badge.svg)](https://sourcegraph.com/github.com/blevesearch/bleve?badge)  [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
8
9modern text indexing in go - [blevesearch.com](http://www.blevesearch.com/)
10
11Try out bleve live by [searching the bleve website](http://www.blevesearch.com/search/?q=bleve).
12
13## Features
14
15* Index any go data structure (including JSON)
16* Intelligent defaults backed up by powerful configuration
17* Supported field types:
18    * Text, Numeric, Date
19* Supported query types:
20    * Term, Phrase, Match, Match Phrase, Prefix
21    * Conjunction, Disjunction, Boolean
22    * Numeric Range, Date Range
23    * Simple query [syntax](http://www.blevesearch.com/docs/Query-String-Query/) for human entry
24* tf-idf Scoring
25* Search result match highlighting
26* Supports Aggregating Facets:
27    * Terms Facet
28    * Numeric Range Facet
29    * Date Range Facet
30
31## Discussion
32
33Discuss usage and development of bleve in the [google group](https://groups.google.com/forum/#!forum/bleve).
34
35## Indexing
36
37```go
38message := struct{
39	Id   string
40	From string
41	Body string
42}{
43	Id:   "example",
44	From: "marty.schoch@gmail.com",
45	Body: "bleve indexing is easy",
46}
47
48mapping := bleve.NewIndexMapping()
49index, err := bleve.New("example.bleve", mapping)
50if err != nil {
51	panic(err)
52}
53index.Index(message.Id, message)
54```
55
56## Querying
57
58```go
59index, _ := bleve.Open("example.bleve")
60query := bleve.NewQueryStringQuery("bleve")
61searchRequest := bleve.NewSearchRequest(query)
62searchResult, _ := index.Search(searchRequest)
63```
64
65## License
66
67Apache License Version 2.0
68