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.
 
 
 
Abhinav Dangeti eb88a62b6d
Merge pull request #1400 from tylerkovacs/tyler/multisearch-sort
2 dni temu
.github/workflows add CI for unit tests (#1368) 1 miesiąc temu
analysis update datetime table test to use subtests (#1389) 2 tygodni temu
cmd/bleve adopt Go modules 2 miesięcy temu
config Include missing token filters 11 miesięcy temu
docs nicer formatting of license header 3 lat temu
document add method to access analyzer of a text field (#1276) 9 miesięcy temu
geo Update .travis.yml to include testing on go version 1.14.x 2 miesięcy temu
http disable http unit test which relied on debug functionality 2 lat temu
index add support for zap v14 (#1408) 1 tydzień temu
mapping MB-38957: Add a unit test for mapping API: defaultAnalyzerName 4 tygodni temu
numeric MB-33455: improve ComputeGeoRange() performance 1 rok temu
registry optimize FacetsBuilder with cached fields & avoid some allocs 3 lat temu
search use inline comparison operators instead of strings.Compare 2 tygodni temu
size Include missing initialization for size entry of integers 2 lat temu
test allow integration tests to force scorch segment type/ver (#1402) 1 tydzień temu
.gitignore initial refactor of query into separate package 3 lat temu
.travis.yml Update .travis.yml to include testing on go version 1.14.x 2 miesięcy temu
CONTRIBUTING.md adding CONTRIBUTING.md to repo 4 lat temu
LICENSE adding license file 6 lat temu
README.md update README (#1376) 1 miesiąc temu
builder.go introduce new scorch index builder (#1282) 3 tygodni temu
builder_test.go introduce new scorch index builder (#1282) 3 tygodni temu
config.go switch back to upsidedown as default index before merge to master 2 lat 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
go.mod add support for zap v14 (#1408) 1 tydzień temu
index.go introduce new scorch index builder (#1282) 3 tygodni temu
index_alias.go nicer formatting of license header 3 lat temu
index_alias_impl.go rename SortImpl to SortFunc and rename getter 2 tygodni temu
index_alias_impl_test.go improve reliability of test on mac 1 miesiąc temu
index_impl.go rename SortImpl to SortFunc and rename getter 2 tygodni 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 replace testidx with proper ioutil.TempDir (#1386) 1 miesiąc temu
mapping.go add experimental support for indexing/query geo points 3 lat temu
query.go typo in documentation 2 lat temu
search.go rename SortImpl to SortFunc and rename getter 2 tygodni temu
search_test.go Adding sub-test functionality for table-driven tests 4 tygodni temu

README.md

bleve bleve

Tests
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