Search for files matching the provided query string.
Search term (min. 1 character) - the shorter the query the longer the average search takes.
Promise resolving to array of matching files
Uses prefix matching on filename tokens. For example:
const files = await fileSearch.search('invoice'); Copy
const files = await fileSearch.search('invoice');
Search for files matching the provided query string.