Vertex AI Search (powered by Google Discovery Engine API) is a fully managed enterprise search service with built-in document processing, semantic ranking, and auto-generated summaries. Gateco connects to Vertex AI Search as a Tier 2 connector — adding identity-aware retrieval and RAG access control on top of Google's semantic and keyword search. Documents are indexed and ranked by Google; Gateco gates which results each principal is allowed to see.
Vertex AI Search uses the Discovery Engine API (discoveryengine.googleapis.com), not the Vertex AI Platform API. This is a completely separate API surface from Vertex AI Vector Search.
Grep search is not supported for Vertex AI Search. Use vector, keyword, or hybrid search modes.
Step 1 — Enable the Discovery Engine API
gcloud services enable discoveryengine.googleapis.com --project=YOUR_PROJECT_IDStep 2 — Create a data store and ingest documents
- In GCP Console, navigate to Vertex AI → Search → Data stores.
- Click Create data store → Cloud Storage (or Web crawl, BigQuery, etc.).
- Select "Unstructured documents" as the content type.
- Set the location (typically "global").
- Complete the wizard. Note the data store ID from the data store details page.
- Go to Documents → Import to add your content.
The data store ID is shown on the data store overview page and in the GCP Console URL. It looks like a numeric ID or a slug.
Step 3 — Create a search app
- Navigate to Vertex AI → Search → Apps → Create app.
- Choose Search.
- Link the app to your data store.
- Note the serving_config_id (default: "default_serving_config") — only override if you have a custom configuration.
Step 4 — Create a service account
gcloud iam service-accounts create gateco-vertex-search \
--display-name="Gateco Vertex AI Search" \
--project=YOUR_PROJECT_ID
gcloud projects add-iam-policy-binding YOUR_PROJECT_ID \
--member="serviceAccount:gateco-vertex-search@YOUR_PROJECT_ID.iam.gserviceaccount.com" \
--role="roles/discoveryengine.viewer"
gcloud iam service-accounts keys create gateco-vertex-search-key.json \
--iam-account=gateco-vertex-search@YOUR_PROJECT_ID.iam.gserviceaccount.comStep 5 — Add the connector in Gateco
- Navigate to Connectors → Add connector → Vertex AI Search.
- Enter your project ID, data store ID, location, and service account JSON.
- Click Test connection.
- Click Save.
| Field | Example | Description |
|---|---|---|
project_id | my-gcp-project | GCP project ID |
data_store_id | 123456789_my-data-store | Data store ID from the GCP Console |
location | global | Data store location (usually "global"; "us" or "eu" for regional stores) |
serving_config_id | default_serving_config | Search app serving config (default is fine for most setups) |
service_account_json | {"type":"service_account",...} | Single-line service account JSON key from Step 4 |
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
PERMISSION_DENIED | Service account lacks discoveryengine.viewer role | Run the gcloud add-iam-policy-binding command from Step 4 |
NOT_FOUND: data store not found | Wrong data store ID or location | Copy the exact data store ID from GCP Console → Vertex AI Search → Data stores |
0 results returned | Data store not yet indexed | Check import status under the data store → Documents tab. Full indexing may take 15–30 minutes after import. |
alpha parameter has no effect | Expected — Vertex AI Search uses internal RRF | Gateco emits a warning when alpha != 0.5; native RRF fusion is always used regardless. |