diff --git a/weed/filer/arangodb/arangodb_store.go b/weed/filer/arangodb/arangodb_store.go index dc4fbad84..f10576105 100644 --- a/weed/filer/arangodb/arangodb_store.go +++ b/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"