mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-05 07:56:50 +08:00
config bleve
This commit is contained in:
@@ -15,6 +15,7 @@ import (
|
|||||||
sr "github.com/lzh-1625/go_process_manager/internal/app/search"
|
sr "github.com/lzh-1625/go_process_manager/internal/app/search"
|
||||||
logger "github.com/lzh-1625/go_process_manager/log"
|
logger "github.com/lzh-1625/go_process_manager/log"
|
||||||
gse "github.com/vcaesar/gse-bleve"
|
gse "github.com/vcaesar/gse-bleve"
|
||||||
|
// gse "github.com/lzh-1625/gse-bleve"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -27,7 +28,7 @@ type bleveSearch struct {
|
|||||||
|
|
||||||
func (b *bleveSearch) Init() error {
|
func (b *bleveSearch) Init() error {
|
||||||
opt := gse.Option{
|
opt := gse.Option{
|
||||||
Dicts: "embed, zh",
|
Dicts: "embed, zh_s",
|
||||||
Stop: "",
|
Stop: "",
|
||||||
Opt: "search-hmm",
|
Opt: "search-hmm",
|
||||||
Trim: "trim",
|
Trim: "trim",
|
||||||
|
Reference in New Issue
Block a user