You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Abhinav Dangeti 99c4fac3d0
Merge pull request #1328 from aviadl/patch-1
3 päivää sitten
analysis MB-33617: Support unicode strings with combining characters 7 kuukautta sitten
cmd/bleve dict cmd additions 11 kuukautta sitten
config Include missing token filters 6 kuukautta sitten
docs nicer formatting of license header 3 vuotta sitten
document add method to access analyzer of a text field (#1276) 5 kuukautta sitten
geo Merge pull request #1327 from sreekanth-cb/parse 1 viikko sitten
http disable http unit test which relied on debug functionality 2 vuotta sitten
index Fix concurrent read write on analysis 1 viikko sitten
mapping go fmt 10 kuukautta sitten
numeric MB-33455: improve ComputeGeoRange() performance 10 kuukautta sitten
registry optimize FacetsBuilder with cached fields & avoid some allocs 3 vuotta sitten
search Merge pull request #1326 from sreekanth-cb/closed_poly 1 viikko sitten
size Include missing initialization for size entry of integers 1 vuosi sitten
test updating integration tests for geo polygon queries 4 kuukautta sitten
vendor bumping the vellum SHA 5 kuukautta sitten
.gitignore initial refactor of query into separate package 3 vuotta sitten
.travis.yml Update .travis.yml to run for go versions 1.12.x and 1.13.x (latest) 3 viikkoa sitten
CONTRIBUTING.md adding CONTRIBUTING.md to repo 3 vuotta sitten
LICENSE adding license file 5 vuotta sitten
README.md Fix coverage badge in README 2 vuotta sitten
config.go switch back to upsidedown as default index before merge to master 2 vuotta sitten
config_app.go nicer formatting of license header 3 vuotta sitten
config_disk.go nicer formatting of license header 3 vuotta sitten
doc.go nicer formatting of license header 3 vuotta sitten
error.go nicer formatting of license header 3 vuotta sitten
examples_test.go additional golint cleanups 3 vuotta sitten
index.go Reset stats: lastDocSize, totalSize in batch's Reset() 9 kuukautta sitten
index_alias.go nicer formatting of license header 3 vuotta sitten
index_alias_impl.go support search after style pagination (#1182) 8 kuukautta sitten
index_alias_impl_test.go Fix spelling and typo mistakes 1 vuosi sitten
index_impl.go support search after style pagination (#1182) 8 kuukautta sitten
index_meta.go index API & scorch uses index.Regexp instead string'ified regexp 1 vuosi sitten
index_meta_test.go nicer formatting of license header 3 vuotta sitten
index_stats.go nicer formatting of license header 3 vuotta sitten
index_test.go fix data race with batch reset (#1150) 10 kuukautta sitten
mapping.go add experimental support for indexing/query geo points 2 vuotta sitten
query.go typo in documentation 2 vuotta sitten
search.go add missing setter method for SetSearchBefore (#1237) 7 kuukautta sitten
search_test.go Fix typos/commentary 2 kuukautta sitten

README.md

bleve bleve

Build Status Coverage Status GoDoc codebeat Go Report Card Sourcegraph License

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