{"id":16950597,"url":"https://github.com/vcaesar/gse-bleve","last_synced_at":"2025-03-22T13:31:26.157Z","repository":{"id":95824328,"uuid":"413102497","full_name":"vcaesar/gse-bleve","owner":"vcaesar","description":"Go use bleve with gse tokenizer ","archived":false,"fork":false,"pushed_at":"2023-08-30T20:03:44.000Z","size":84,"stargazers_count":29,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-18T11:39:15.021Z","etag":null,"topics":["bleve","go","gse","search","token"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vcaesar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-03T14:34:26.000Z","updated_at":"2024-12-24T04:45:43.000Z","dependencies_parsed_at":"2024-06-19T01:44:56.549Z","dependency_job_id":null,"html_url":"https://github.com/vcaesar/gse-bleve","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Fgse-bleve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Fgse-bleve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Fgse-bleve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Fgse-bleve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vcaesar","download_url":"https://codeload.github.com/vcaesar/gse-bleve/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244962822,"owners_count":20539229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bleve","go","gse","search","token"],"created_at":"2024-10-13T21:58:05.384Z","updated_at":"2025-03-22T13:31:25.889Z","avatar_url":"https://github.com/vcaesar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gse-bleve\n\n[![Build Status](https://github.com/vcaesar/gse-bleve/workflows/Go/badge.svg)](https://github.com/vcaesar/gse-bleve/commits/master)\n[![Build Status](https://travis-ci.org/vcaesar/gse-bleve.svg)](https://travis-ci.org/vcaesar/gse-bleve)\n[![CircleCI Status](https://circleci.com/gh/vcaesar/gse-bleve.svg?style=shield)](https://circleci.com/gh/vcaesar/gse-bleve)\n[![codecov](https://codecov.io/gh/vcaesar/gse-bleve/branch/master/graph/badge.svg)](https://codecov.io/gh/vcaesar/gse-bleve)\n[![Go Report Card](https://goreportcard.com/badge/github.com/vcaesar/gse-bleve)](https://goreportcard.com/report/github.com/vcaesar/gse-bleve)\n[![GoDoc](https://godoc.org/github.com/vcaesar/gse-bleve?status.svg)](https://godoc.org/github.com/vcaesar/gse-bleve)\n[![Release](https://github-release-version.herokuapp.com/github/vcaesar/gse-bleve/release.svg?style=flat)](https://github.com/vcaesar/gse-bleve/releases/latest)\n\n\n## Use \n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/blevesearch/bleve/v2\"\n\tgse \"github.com/vcaesar/gse-bleve\"\n)\n\nfunc main() {\n\topt := gse.Option{\n\t\tIndex: \"test.blv\",\n\t\tDicts: \"embed, ja\",\n\t\t// Dicts: \"embed, zh\", \n\t\tStop: \"\",\n\t\tOpt: \"search-hmm\", \n\t\tTrim: \"trim\",\n\t\t}\n\n\tindex, err := gse.New(opt)\n\tif err != nil {\n\t\tfmt.Println(\"new mapping error is: \", err)\n\t\treturn\n\t}\n\n\ttext := `見解では、謙虚なヴォードヴィリアンのベテランは、運命の犠牲者と悪役の両方の変遷として代償を払っています`\n\terr = index.Index(\"1\", text)\n\tindex.Index(\"3\", text+\"浮き沈み\")\n\tindex.Index(\"4\", `In view, a humble vaudevillian veteran cast vicariously as both victim and villain vicissitudes of fate.`)\n\tindex.Index(\"2\", `It's difficult to understand the sum of a person's life.`)\n\tif err != nil {\n\t\tfmt.Println(\"index error: \", err)\n\t}\n\n\tquery := \"運命の犠牲者\"\n\treq := bleve.NewSearchRequest(bleve.NewQueryStringQuery(query))\n\treq.Highlight = bleve.NewHighlight()\n\tres, err := index.Search(req)\n\tfmt.Println(res, err)\n\n\tos.RemoveAll(\"test.blv\")\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcaesar%2Fgse-bleve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvcaesar%2Fgse-bleve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcaesar%2Fgse-bleve/lists"}