mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
make start from indexing work
This commit is contained in:
parent
31571dd96e
commit
f3ab6769e9
|
@ -263,16 +263,18 @@ remove d in files`, map[string]interface{}{"dir": dir})
|
||||||
return nil
|
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) {
|
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
|
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) {
|
func (store *ArangodbStore) ListDirectoryEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int64, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error) {
|
||||||
eq := ""
|
eq := ""
|
||||||
if !includeStartFile {
|
if includeStartFile {
|
||||||
eq = "filter d.name != \"" + startFileName + "\""
|
eq = "filter d.name >= \"" + startFileName + "\""
|
||||||
|
} else {
|
||||||
|
eq = "filter d.name > \"" + startFileName + "\""
|
||||||
}
|
}
|
||||||
fmt.Println(dirPath, startFileName, includeStartFile)
|
|
||||||
query := fmt.Sprintf(`
|
query := fmt.Sprintf(`
|
||||||
for d in files
|
for d in files
|
||||||
filter d.directory == "%s"
|
filter d.directory == "%s"
|
||||||
|
|
Loading…
Reference in a new issue