Browse Source

make start from indexing work

pull/2764/head
elee 3 years ago
parent
commit
f3ab6769e9
  1. 8
      weed/filer/arangodb/arangodb_store.go

8
weed/filer/arangodb/arangodb_store.go

@ -263,16 +263,18 @@ remove d in files`, map[string]interface{}{"dir": dir})
return nil
}
//TODO: use fulltext index
func (store *ArangodbStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int64, prefix string, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error) {
return lastFileName, filer.ErrUnsupportedListDirectoryPrefixed
}
func (store *ArangodbStore) ListDirectoryEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int64, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error) {
eq := ""
if !includeStartFile {
eq = "filter d.name != \"" + startFileName + "\""
if includeStartFile {
eq = "filter d.name >= \"" + startFileName + "\""
} else {
eq = "filter d.name > \"" + startFileName + "\""
}
fmt.Println(dirPath, startFileName, includeStartFile)
query := fmt.Sprintf(`
for d in files
filter d.directory == "%s"

Loading…
Cancel
Save