Skip to content

Commit

Permalink
Search API v2: Add datastore env config
Browse files Browse the repository at this point in the history
For autocomplete requests, we need to make requests against a datastore
directly, not a branch. This adds the required configuration variable to
the app's environment.
  • Loading branch information
csutter committed Aug 20, 2024
1 parent f6a6c2d commit 5bdc3e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/search-api-v2/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ services:
RABBITMQ_URL: "amqp://guest:guest@rabbitmq"
REDIS_URL: redis://redis
PUBLISHED_DOCUMENTS_MESSAGE_QUEUE_NAME: "search_api_v2_published_documents"
# The fully qualified ID of the datastore branch and serving config on the Discovery Engine
# The fully qualified ID of the datastore, branch and serving config on the Discovery Engine
# integration environment (required to use Discovery Engine locally).
#
DISCOVERY_ENGINE_DATASTORE: "projects/search-api-v2-integration/locations/global/collections/default_collection/dataStores/govuk_content"
DISCOVERY_ENGINE_DATASTORE_BRANCH: "projects/search-api-v2-integration/locations/global/collections/default_collection/dataStores/govuk_content/branches/default_branch"
DISCOVERY_ENGINE_SERVING_CONFIG: "projects/search-api-v2-integration/locations/global/collections/default_collection/dataStores/govuk_content/servingConfigs/default_search"
command: bin/rake document_sync_worker:run

0 comments on commit 5bdc3e0

Please sign in to comment.