கோப்புச் சுட்டி
சேமிக்கப்பட்ட கோப்புச் சுட்டியில் பக்கங்களாகவும் வரிசைப்படுத்தியும் தேடவும் அல்லது அதே வினவலின் பொருத்தங்களை எண்ணவும்.
Volume scan scheduling
volumeIdQUEUEDFIFO · deduplicate by volume
RUNNING × 1One scan at a time
Complete / fail / stop → next
pause → PAUSED · resume → QUEUED
வகை வரையறைகள்
type Subscription {
fileIndexScanProgressUpdated: FileIndexScanProgress!
}
type Query {
indexedFileCount(query: String!): Long!
indexedFiles(query: String!, offset: Int!, limit: Int!, sortBy: FileSortBy!): [File!]!
fileIndexDefaults: FileIndexDefaults!
fileIndexScanProgress(volumeId: ID): FileIndexScanProgress!
fileIndexVolumes: [FileIndexVolume!]!
}
type Mutation {
pauseFileIndex(volumeId: ID): Boolean!
rebuildFileIndex(volumeId: ID): Boolean!
resumeFileIndex(volumeId: ID): Boolean!
setFileIndexVolume(volumeId: ID!, input: FileIndexVolumeInput!): Boolean!
stopFileIndex(volumeId: ID): Boolean!
}
type File {
permission: String!
mediaId: ID
name: String!
path: String!
createdAt: Instant
updatedAt: Instant!
size: Long!
isDir: Boolean!
childCount: Int!
url: String!
isSystem: Boolean!
}
type FileIndexDefaults {
excludedDirs: [String!]!
excludedNames: [String!]!
excludedProfileDirs: [FileIndexProfileDir!]!
mediaExcludedDirSuffixes: [String!]!
}
enum FileIndexMode {
UNCONFIGURED
DISABLED
ALLOWLIST
BLOCKLIST
}
type FileIndexProfileDir {
profilesDir: String!
excludedDir: String!
exceptDirs: [String!]!
}
type FileIndexScanProgress {
volumeId: ID
indexed: Int!
pending: Int
total: Int
state: FileIndexScanState!
error: String
}
enum FileIndexScanState {
IDLE
QUEUED
RUNNING
PAUSED
STOPPED
FAILED
}
enum FileIndexScanStatus {
COMPLETED
CANCELED
FAILED
}
type FileIndexVolume {
id: ID!
path: String!
isAvailable: Boolean!
indexMode: FileIndexMode!
includedDirs: [String!]!
excludedDirs: [String!]!
lastScanAt: Instant
lastScanStatus: FileIndexScanStatus
lastScanCount: Long
lastScanTotal: Long
}
input FileIndexVolumeInput {
indexMode: FileIndexMode!
includedDirs: [String!]!
excludedDirs: [String!]!
}
enum FileSortBy {
UPDATED_AT_ASC
UPDATED_AT_DESC
SIZE_ASC
SIZE_DESC
NAME_ASC
NAME_DESC
}
scalar Instant
scalar Longசெயல்பாடுகள்
fileIndexScanProgressUpdated
கோப்பு அட்டவணை ஸ்கேன் முன்னேற்றப் புதுப்பிப்புகளைப் பெறவும்.
subscription fileIndexScanProgressUpdated {
fileIndexScanProgressUpdated { volumeId indexed pending total state error }
}indexedFileCount
வினவலுக்குப் பொருந்தும் அட்டவணைப்படுத்தப்பட்ட கோப்புகளை எண்ணவும்.
query indexedFileCount($query: String!) {
indexedFileCount(query: $query)
}indexedFiles
சேமிக்கப்பட்ட கோப்பு அட்டவணையில் பக்கப் பிரிவு மற்றும் வரிசைப்படுத்தலுடன் தேடவும்.
query indexedFiles($query: String!, $offset: Int!, $limit: Int!, $sortBy: FileSortBy!) {
indexedFiles(query: $query, offset: $offset, limit: $limit, sortBy: $sortBy) { permission mediaId name path createdAt updatedAt size isDir }
}pauseFileIndex
இயங்கும் கோப்பு அட்டவணை ஸ்கேனை இடைநிறுத்தவும்.
mutation pauseFileIndex($volumeId: ID) {
pauseFileIndex(volumeId: $volumeId)
}rebuildFileIndex
ஒரு தொகுதியின் கோப்பு அட்டவணையை மீண்டும் உருவாக்கவும்; volumeId விடுபட்டால் அல்லது null எனில் கட்டமைக்கப்பட்ட அனைத்துத் தொகுதிகளையும் செயலாக்கவும்.
mutation rebuildFileIndex($volumeId: ID) {
rebuildFileIndex(volumeId: $volumeId)
}resumeFileIndex
இடைநிறுத்தப்பட்ட கோப்பு அட்டவணை ஸ்கேனைத் தொடரவும்.
mutation resumeFileIndex($volumeId: ID) {
resumeFileIndex(volumeId: $volumeId)
}setFileIndexVolume
தொகுதியின் அட்டவணை முறை மற்றும் கோப்பகங்களைச் சேமித்து, அதன் அட்டவணையைப் புதுப்பிக்கவும்.
mutation setFileIndexVolume($volumeId: ID!, $input: FileIndexVolumeInput!) {
setFileIndexVolume(volumeId: $volumeId, input: $input)
}stopFileIndex
இயங்கும் கோப்பு அட்டவணை ஸ்கேனை நிறுத்தவும்.
mutation stopFileIndex($volumeId: ID) {
stopFileIndex(volumeId: $volumeId)
}fileIndexDefaults
இயல்புநிலை கோப்பு அட்டவணை அமைப்பைப் படிக்கவும்.
query fileIndexDefaults {
fileIndexDefaults { excludedDirs excludedNames mediaExcludedDirSuffixes }
}fileIndexScanProgress
தற்போதைய கோப்பு அட்டவணை ஸ்கேன் முன்னேற்றத்தைப் படிக்கவும்.
query fileIndexScanProgress($volumeId: ID) {
fileIndexScanProgress(volumeId: $volumeId) { volumeId indexed pending total state error }
}fileIndexVolumes
பதிவுசெய்யப்பட்ட கோப்பு அட்டவணைச் சேமிப்பகத் தொகுதிகளையும் அவற்றின் அமைப்பையும் படிக்கவும்.
query fileIndexVolumes {
fileIndexVolumes { id path isAvailable indexMode includedDirs excludedDirs lastScanAt lastScanStatus }
}