{
  "slug": "gcloud-firestore-indexes-composite-create-adds-search-configuration-options-a69e9d9545a4",
  "title": "gcloud firestore indexes composite create adds search configuration options",
  "tools": [
    "gcloud"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-12T00:00:00.000Z",
  "announced_at": "2026-05-12T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "To create a beta composite Firestore search index, run `gcloud beta firestore indexes composite create` with a search-config field and, if needed, search-index-options.",
    "examples": [
      "gcloud beta firestore indexes composite create --database=<DATABASE_ID> --collection-group=<COLLECTION_GROUP> --field-config=field-path=<FIELD_NAME>,search-config='{\"text-spec\":{\"index-specs\":[{\"index-type\":\"tokenized\",\"match-type\":\"match-globally\"}]}}' --search-index-options=text-language=<BCP47_LANGUAGE>"
    ],
    "gotchas": [
      "Availability: beta",
      "--collection-group (required): Collection group ID to index.",
      "--database: Database ID; defaults to `(default)`.",
      "--field-config (required): Index field configuration. `field-path` is required. A search field uses `search-config`; an index definition must contain only search-config fields or only non-search-config fields.",
      "search-config.geo-spec: Geo search field specification. `geo-json-indexing-disabled` is an optional sub-key that disables GeoJSON indexing; by default GeoJSON points are indexed.",
      "search-config.text-spec: Text search field specification. `index-specs` is an optional array; each entry requires `index-type` and `match-type`.",
      "--search-index-options: Search index definition options. `text-language` is an optional BCP 47 language code used as the default; `text-language-override-field-path` is an optional document field path for per-document language. Docs do not state these sub-keys are mutually exclusive.",
      "text-spec.index-specs[].index-type (required): Specifies how to index the text field value; documented example value: `tokenized`.",
      "text-spec.index-specs[].match-type (required): Specifies how to match the text field value; documented example value: `match-globally`."
    ]
  },
  "why_it_matters": "Create a beta composite Firestore index with search configuration options.",
  "sources": [
    "https://docs.cloud.google.com/sdk/docs/release-notes#56800_2026-05-12",
    "https://docs.cloud.google.com/sdk/gcloud/reference/beta/firestore/indexes/composite/create"
  ],
  "rank": 0.93012,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "cloud-20261008",
    "verdict_id": "cloud-20261008:cloud-20261008-1181eaff7854b273-3:gate",
    "evidence_hash": "4421c1381cdc787c2611b9e4a7f632c717f70eaaf3e6143955fd27b5d685d88f"
  },
  "review": {
    "draft_hash": "1d71024d14b12cd8112d9724bb5f669d8f1389aff2dfe3903783e0caec08807c",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "cloud-20261008:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.64 (>= 0.6 needed)."
  }
}
