feat: add database non full text index (close #2916)

This commit is contained in:
BoYanZh
2023-01-07 01:40:49 +08:00
committed by GitHub
parent 1c453ae147
commit 7902b646ff
5 changed files with 74 additions and 11 deletions

View File

@ -15,7 +15,7 @@ func (D DB) Config() searcher.Config {
}
func (D DB) Search(ctx context.Context, req model.SearchReq) ([]model.SearchNode, int64, error) {
return db.SearchNode(req)
return db.SearchNode(req, true)
}
func (D DB) Index(ctx context.Context, node model.SearchNode) error {