google / googleapis.dart

Repository for building the googleapis packages
https://pub.dev/packages/googleapis
BSD 3-Clause "New" or "Revised" License
393 stars 119 forks source link

fullText search does not work on appDataFolder in google drive #575

Open floyd-lewis opened 1 year ago

floyd-lewis commented 1 year ago

It appears that the files are not getting indexed in appDataFolder.

final queryStr = "name='text.txt' and fullText contains '$searchStr' and trashed = false"; final fileList = await api.files.list( q: queryStr, $fields: 'files(id, name, parents)', spaces: 'appDataFolder',

If I keep the files in shared directory and use the spaces: 'drive' the search works. If I use a 'not fullText' instead I get back the file along with other files. "name='text.txt' and not fullText contains '$searchStr' and trashed = false";