Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full text search doesn't work when using 'in parents' option #3443

Open
joeyave opened this issue Feb 26, 2024 · 1 comment
Open

Full text search doesn't work when using 'in parents' option #3443

joeyave opened this issue Feb 26, 2024 · 1 comment
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@joeyave
Copy link

joeyave commented Feb 26, 2024

Thanks for stopping by to let us know something could be better!

Environment details

Programming language: go
OS: MacOS, Linux
Language runtime version: 1.21.6
Package version: v0.167.0
Steps to reproduce

Make a query with full text search that searches inside Google Docs file and add "in parents" option.
Such as

Query:

fullText contains 'часом знемагаю' and trashed = false and mimeType = 'application/vnd.google-apps.document' and '1234567' in parents

Result:

{
  "files": []
}

Result is empty files list. But if remove "in parents" part and make another search I get this file. And that file has an ID in parents field.

Query:

fullText contains 'часом знемагаю' and trashed = false and mimeType = 'application/vnd.google-apps.document'

Result:

{
  "files": [
    {
      "parents": [
        "1234567"
      ]
    }
  ]
}

Interesting part is that it returns file if full text search query contains words from file's name.

@joeyave joeyave added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Feb 26, 2024
@joeyave
Copy link
Author

joeyave commented Feb 26, 2024

Query also works if I duplicate "in parents" part.
fullText contains 'часом знемагаю' and trashed = false and mimeType = 'application/vnd.google-apps.document' and ('1234567' in parents or '1234567' in parents)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants