guillep2k 5661773018 | 5 years ago | |
---|---|---|
.. | ||
analysis | 5 years ago | |
document | 5 years ago | |
geo | 5 years ago | |
index | 5 years ago | |
mapping | 5 years ago | |
numeric | 5 years ago | |
registry | 7 years ago | |
search | 5 years ago | |
size | 5 years ago | |
.gitignore | 5 years ago | |
.travis.yml | 5 years ago | |
CONTRIBUTING.md | 5 years ago | |
LICENSE | 7 years ago | |
README.md | 5 years ago | |
config.go | 6 years ago | |
config_app.go | 6 years ago | |
config_disk.go | 7 years ago | |
doc.go | 7 years ago | |
error.go | 7 years ago | |
index.go | 5 years ago | |
index_alias.go | 7 years ago | |
index_alias_impl.go | 5 years ago | |
index_impl.go | 5 years ago | |
index_meta.go | 5 years ago | |
index_stats.go | 7 years ago | |
mapping.go | 7 years ago | |
query.go | 6 years ago | |
search.go | 5 years ago |
modern text indexing in go - blevesearch.com
Try out bleve live by searching the bleve website.
Discuss usage and development of bleve in the google group.
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)
index, _ := bleve.Open("example.bleve")
query := bleve.NewQueryStringQuery("bleve")
searchRequest := bleve.NewSearchRequest(query)
searchResult, _ := index.Search(searchRequest)
Apache License Version 2.0