KO
|
EN
gitlite โ search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#claude-code
#codex
#cli
#developer-tools
#react
#windows
gse-bleve
โ 31
Open GitHub โ
Go use bleve with gse tokenizer
Download README (.md)
Explore Similar Repositories
swamp
:
Navigate your backed up data without drowning.
tantivy-go
:
Tantivy go bindings
gojieba-bleve
:
GoJieba Bleve support
searchgoose
:
๐ฆข Elasticsearch-like simple, lightweight, distributed RESTful search-engine using bleve written in go ๐
bleve-mapping-ui
:
web-based UI editor for bleve index mappings
// repository documentation
Was this content helpful?
โ 0
(0 ratings)
Select Rating:
โ
โ
โ
โ
โ
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
gse-bleve
?
Download (.md)
# gse-bleve [](https://github.com/vcaesar/gse-bleve/commits/master) [](https://travis-ci.org/vcaesar/gse-bleve) [](https://circleci.com/gh/vcaesar/gse-bleve) [](https://codecov.io/gh/vcaesar/gse-bleve) [](https://goreportcard.com/report/github.com/vcaesar/gse-bleve) [](https://godoc.org/github.com/vcaesar/gse-bleve) [](https://github.com/vcaesar/gse-bleve/releases/latest) ## Use ```go package main import ( "fmt" "os" "github.com/blevesearch/bleve/v2" gse "github.com/vcaesar/gse-bleve" ) func main() { opt := gse.Option{ Index: "test.blv", Dicts: "embed, ja", // Dicts: "embed, zh", Stop: "", Opt: "search-hmm", Trim: "trim", } index, err := gse.New(opt) if err != nil { fmt.Println("new mapping error is: ", err) return } text := `่ฆ่งฃใงใฏใ่ฌ่ใชใดใฉใผใใดใฃใชใขใณใฎใใใฉใณใฏใ้ๅฝใฎ็ ็ฒ่ ใจๆชๅฝนใฎไธกๆนใฎๅค้ทใจใใฆไปฃๅใๆใฃใฆใใพใ` err = index.Index("1", text) index.Index("3", text+"ๆตฎใๆฒใฟ") index.Index("4", `In view, a humble vaudevillian veteran cast vicariously as both victim and villain vicissitudes of fate.`) index.Index("2", `It's difficult to understand the sum of a person's life.`) if err != nil { fmt.Println("index error: ", err) } query := "้ๅฝใฎ็ ็ฒ่ " req := bleve.NewSearchRequest(bleve.NewQueryStringQuery(query)) req.Highlight = bleve.NewHighlight() res, err := index.Search(req) fmt.Println(res, err) os.RemoveAll("test.blv") } ```