Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
Sreekanth Sivasankaran e19c8bdb42
Merge pull request #1292 from sreekanth-cb/indexSize
6 dni temu
analysis MB-33617: Support unicode strings with combining characters 4 miesięcy temu
cmd/bleve dict cmd additions 8 miesięcy temu
config Include missing token filters 3 miesięcy temu
docs nicer formatting of license header 3 lat temu
document add method to access analyzer of a text field (#1276) 2 miesięcy temu
geo Support for bounded polygon query… 1 miesiąc temu
http disable http unit test which relied on debug functionality 1 rok temu
index adding a disk size stats for the root index 1 tydzień temu
mapping go fmt 7 miesięcy temu
numeric MB-33455: improve ComputeGeoRange() performance 7 miesięcy temu
registry optimize FacetsBuilder with cached fields & avoid some allocs 3 lat temu
search Merge pull request #1288 from sreekanth-cb/score_none 1 miesiąc temu
size Include missing initialization for size entry of integers 1 rok temu
test updating integration tests for geo polygon queries 1 miesiąc temu
vendor bumping the vellum SHA 1 miesiąc temu
.gitignore initial refactor of query into separate package 3 lat temu
.travis.yml Update .travis to test on the last 3 releases of golang 1 tydzień temu
CONTRIBUTING.md adding CONTRIBUTING.md to repo 3 lat temu
LICENSE adding license file 5 lat temu
README.md Fix coverage badge in README 1 rok temu
config.go switch back to upsidedown as default index before merge to master 1 rok temu
config_app.go nicer formatting of license header 3 lat temu
config_disk.go nicer formatting of license header 3 lat temu
doc.go nicer formatting of license header 3 lat temu
error.go nicer formatting of license header 3 lat temu
examples_test.go additional golint cleanups 3 lat temu
index.go Reset stats: lastDocSize, totalSize in batch's Reset() 6 miesięcy temu
index_alias.go nicer formatting of license header 3 lat temu
index_alias_impl.go support search after style pagination (#1182) 4 miesięcy temu
index_alias_impl_test.go Fix spelling and typo mistakes 1 rok temu
index_impl.go support search after style pagination (#1182) 4 miesięcy temu
index_meta.go index API & scorch uses index.Regexp instead string'ified regexp 1 rok temu
index_meta_test.go nicer formatting of license header 3 lat temu
index_stats.go nicer formatting of license header 3 lat temu
index_test.go fix data race with batch reset (#1150) 7 miesięcy temu
mapping.go add experimental support for indexing/query geo points 2 lat temu
query.go typo in documentation 1 rok temu
search.go add missing setter method for SetSearchBefore (#1237) 4 miesięcy temu
search_test.go Include freq/norm information when IncludeTermVectors:true 6 miesięcy temu

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