feat: support es sort

This commit is contained in:
loveuer committed 2024-06-21 15:52:34 +08:00
1 parent c9ace7c105
commit 24564489b8
8 files changed
+36 -9

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ import (
)
type DumpIO interface {
ReadData(ctx context.Context, size int, query map[string]any, includeFields []string) (<-chan []*model.ESSource, <-chan error)
ReadData(ctx context.Context, size int, query map[string]any, includeFields []string, sort []string) (<-chan []*model.ESSource, <-chan error)
WriteData(ctx context.Context, docsCh <-chan []*model.ESSource) error
ReadMapping(context.Context) (map[string]any, error)