Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
Marty Schoch 81b1327ecc bump again again again il y a 3 heures
analysis Adding snowball stemmers for en,fr,it,es,de il y a 1 mois
cmd/bleve adopt Go modules il y a 4 heures
config Include missing token filters il y a 9 mois
docs nicer formatting of license header il y a 3 ans
document add method to access analyzer of a text field (#1276) il y a 7 mois
geo Update .travis.yml to include testing on go version 1.14.x il y a 4 jours
http disable http unit test which relied on debug functionality il y a 2 ans
index adopt Go modules il y a 4 heures
mapping go fmt il y a 1 an
numeric MB-33455: improve ComputeGeoRange() performance il y a 1 an
registry optimize FacetsBuilder with cached fields & avoid some allocs il y a 3 ans
search Merge pull request #1334 from sreekanth-cb/pagination il y a 1 mois
size Include missing initialization for size entry of integers il y a 1 an
test Enabling score/id based search_after/before paginations il y a 1 mois
.gitignore initial refactor of query into separate package il y a 3 ans
.travis.yml Update .travis.yml to include testing on go version 1.14.x il y a 4 jours
CONTRIBUTING.md adding CONTRIBUTING.md to repo il y a 3 ans
LICENSE adding license file il y a 6 ans
README.md Fix coverage badge in README il y a 2 ans
config.go switch back to upsidedown as default index before merge to master il y a 2 ans
config_app.go nicer formatting of license header il y a 3 ans
config_disk.go nicer formatting of license header il y a 3 ans
doc.go nicer formatting of license header il y a 3 ans
error.go nicer formatting of license header il y a 3 ans
examples_test.go additional golint cleanups il y a 3 ans
go.mod bump again again again il y a 3 heures
index.go Reset stats: lastDocSize, totalSize in batch's Reset() il y a 11 mois
index_alias.go nicer formatting of license header il y a 3 ans
index_alias_impl.go support search after style pagination (#1182) il y a 10 mois
index_alias_impl_test.go Fix spelling and typo mistakes il y a 1 an
index_impl.go support search after style pagination (#1182) il y a 10 mois
index_meta.go index API & scorch uses index.Regexp instead string'ified regexp il y a 1 an
index_meta_test.go nicer formatting of license header il y a 3 ans
index_stats.go nicer formatting of license header il y a 3 ans
index_test.go fix data race with batch reset (#1150) il y a 1 an
mapping.go add experimental support for indexing/query geo points il y a 3 ans
query.go typo in documentation il y a 2 ans
search.go add missing setter method for SetSearchBefore (#1237) il y a 10 mois
search_test.go Fix typos/commentary il y a 5 mois

README.md

bleve bleve

Build Status Coverage Status GoDoc Join the chat at https://gitter.im/blevesearch/bleve 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