Skip to content

Google Drive


Overview

Your design docs, runbooks, and setup guides already explain how things work. Connect Google Drive to CodeCortex, choose the folders and files to index, and developers can ask questions about them in Enterprise Search.

  • Read-only access: CodeCortex connects to Google Drive with read-only access.
  • You choose the content: Only the folders and files you select are indexed. Everything else in your Drive stays out of CodeCortex.

Prerequisites

Step 1: Set Up CodeCortex

Set up CodeCortex by following the Overview guide.

Step 2: Check Your Role

Only workspace or product admins can connect Google Drive and change indexed content.

Connect Google Drive

You can connect Google Drive in the CodeCortex setup wizard, or later from the Integrations page.

Step 1: Sign In with Google

  • In the setup wizard: Choose Google Drive on the Select your tools screen, then select Next on the Connect Google Drive step.
  • From Integrations: Open Integrations in the CodeCortex sidebar, and connect Google Drive.

You are taken to Google in the same tab.

Step 2: Allow Access

Sign in with your Google account and allow CloudAEye to read your Google Drive. You are returned to CloudAEye.

Step 3: Choose Folders and Files

Expand folders and select the folders and files CodeCortex should index.

  • Selecting a folder includes the files inside it.

Step 4: Start Indexing

  • In the setup wizard: Select Next to start indexing.
  • From Integrations: Select Save changes.

The selected content is queued for indexing. Large folders take longer.

Supported Files

Type Formats
Google Workspace Google Docs, Google Sheets, Google Slides
Documents PDF, Word (.docx)
Text Markdown, reStructuredText, plain text, logs
Structured data CSV, JSON, YAML, XML

Excel and PowerPoint files are not indexed.

Manage Indexed Content

Open Integrations in the CodeCortex sidebar, and open Google Drive. The page lists your files and folders with these columns:

Column Description
Name The file or folder name. Expand a folder to see its contents.
Type The file type, for example Google Doc, PDF, or Folder.
Last modified When the file was last changed in Google Drive.
Size The file size.
Indexing status Where the file is in the indexing process. See Indexing Status.

To add or remove content:

  1. Select the items to add, and clear the items to remove.
  2. Select Save changes, or select Discard changes to undo your selections.
  3. If you are removing items, review the list in the Remove indexed content? dialog, then select Remove and save changes.

Removed files are deleted from CloudAEye's index. The original files in Google Drive are not changed.

Reconnect Google Drive

If the connection expires or access is removed, the Google Drive page shows a notice with a Reconnect button, and affected files show Reconnect and retry. Your indexed content and saved selections are kept. Select Reconnect and sign in with Google again.

Troubleshooting

Problem What to do
Could not load Google Drive files. Select Retry. If it keeps failing, reconnect Google Drive.
A file shows Failed. Check that the file is a supported type and is not empty.
You can't select or save changes. Only workspace or product admins can change indexed content. Ask an admin.
A file can't be changed. The file is still being indexed. Wait for indexing to finish.
Indexing status is unavailable. Select Retry. Your pending changes are kept.

Next Steps