fix(search): don't delete virtual folder while update indexes (close #2677)

This commit is contained in:
Noah Hsu
2022-12-11 14:59:58 +08:00
parent 1640f06e13
commit 5043815d48
4 changed files with 11 additions and 2 deletions

View File

@ -18,7 +18,7 @@ type Searcher interface {
Search(ctx context.Context, req model.SearchReq) ([]model.SearchNode, int64, error)
// Index obj with parent
Index(ctx context.Context, node model.SearchNode) error
// Index obj with parent in batches
// BatchIndex obj with parent
BatchIndex(ctx context.Context, nodes []model.SearchNode) error
// Get by parent
Get(ctx context.Context, parent string) ([]model.SearchNode, error)