A modern text indexing library for go

Marty Schoch 667371dbec more golint simplifications 3 years ago
analysis f3dc89699d address golint warnings 3 years ago
cmd 2332455bd2 nicer formatting of license header 3 years ago
config 2332455bd2 nicer formatting of license header 3 years ago
docs 2332455bd2 nicer formatting of license header 3 years ago
document 2332455bd2 nicer formatting of license header 3 years ago
http 2332455bd2 nicer formatting of license header 3 years ago
index 2332455bd2 nicer formatting of license header 3 years ago
mapping f05dc237ab fix comment in wrong format 3 years ago
numeric 2332455bd2 nicer formatting of license header 3 years ago
registry 667371dbec more golint simplifications 3 years ago
search 3a276153a3 actually rename packages to singular, not just directory name 3 years ago
test 2332455bd2 nicer formatting of license header 3 years ago
vendor 134f7b7479 update moss gvt manifest for SeekTo() API 3 years ago
.gitignore 9ec2ddd757 initial refactor of query into separate package 3 years ago
.travis.yml bd2a23fb6d remove firestorm index scheme 3 years ago
CONTRIBUTING.md 2807a2c8bd adding CONTRIBUTING.md to repo 3 years ago
LICENSE 6e7aa57b52 adding license file 5 years ago
README.md bf055b6bf2 update readme 3 years ago
config.go 2332455bd2 nicer formatting of license header 3 years ago
config_app.go 2332455bd2 nicer formatting of license header 3 years ago
config_disk.go 2332455bd2 nicer formatting of license header 3 years ago
doc.go 2332455bd2 nicer formatting of license header 3 years ago
error.go 2332455bd2 nicer formatting of license header 3 years ago
examples_test.go 2332455bd2 nicer formatting of license header 3 years ago
index.go 2332455bd2 nicer formatting of license header 3 years ago
index_alias.go 2332455bd2 nicer formatting of license header 3 years ago
index_alias_impl.go 2332455bd2 nicer formatting of license header 3 years ago
index_alias_impl_test.go 2332455bd2 nicer formatting of license header 3 years ago
index_impl.go 3a276153a3 actually rename packages to singular, not just directory name 3 years ago
index_meta.go 2332455bd2 nicer formatting of license header 3 years ago
index_meta_test.go 2332455bd2 nicer formatting of license header 3 years ago
index_stats.go 2332455bd2 nicer formatting of license header 3 years ago
index_test.go 2332455bd2 nicer formatting of license header 3 years ago
mapping.go 2332455bd2 nicer formatting of license header 3 years ago
query.go 2332455bd2 nicer formatting of license header 3 years ago
search.go 2332455bd2 nicer formatting of license header 3 years ago
search_test.go 2332455bd2 nicer formatting of license header 3 years ago

README.md

bleve bleve

Build Status Coverage Status GoDoc codebeat Go Report Card

modern text indexing in go - blevesearch.com

Try out bleve live by searching the bleve website.

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 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.

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, err := bleve.New("example.bleve", mapping)
    if err != nil {
        panic(err)
    }
    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