|
|
6 年之前 | |
|---|---|---|
| .. | ||
| analysis | 6 年之前 | |
| document | 6 年之前 | |
| geo | 6 年之前 | |
| index | 6 年之前 | |
| mapping | 6 年之前 | |
| numeric | 6 年之前 | |
| registry | 8 年之前 | |
| search | 6 年之前 | |
| size | 6 年之前 | |
| .gitignore | 6 年之前 | |
| .travis.yml | 6 年之前 | |
| CONTRIBUTING.md | 6 年之前 | |
| LICENSE | 8 年之前 | |
| README.md | 6 年之前 | |
| config.go | 7 年之前 | |
| config_app.go | 7 年之前 | |
| config_disk.go | 8 年之前 | |
| doc.go | 8 年之前 | |
| error.go | 8 年之前 | |
| index.go | 6 年之前 | |
| index_alias.go | 8 年之前 | |
| index_alias_impl.go | 6 年之前 | |
| index_impl.go | 6 年之前 | |
| index_meta.go | 6 年之前 | |
| index_stats.go | 8 年之前 | |
| mapping.go | 8 年之前 | |
| query.go | 7 年之前 | |
| search.go | 6 年之前 | |
blevemodern 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