Vector: use array copy instead of for-loop copy
DocumentFile: check file format using file command
App: set query vector