Skip to content

feat: Support creating search indexes for Firestore - #10431

Merged
bw-yuhogg merged 1 commit into
mainfrom
search-index-support
May 6, 2026
Merged

bw-yuhogg merged 1 commit into
mainfrom
search-index-support

Conversation

@bw-yuhogg

Copy link
Copy Markdown
Contributor

Description

Adds support for creating Firestore search indexes

Scenarios Tested

Tested search configs with and without other existing index field types.

Sample Commands

firebase deploy --only firestore

@bw-yuhogg
bw-yuhogg requested a review from NickChittle April 29, 2026 18:55

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for searchConfig in Firestore indexes, encompassing API type definitions, sorting logic, validation, and pretty-printing. The feedback focuses on improving code robustness and adhering to project standards. Specifically, it is recommended to use optional chaining when accessing index fields to prevent potential runtime errors, implement a more deterministic comparison logic for searchConfig instead of relying on JSON.stringify, remove the use of the any type in accordance with the style guide, and add explicit validation for optional configuration fields.

Comment thread src/firestore/api.ts Resolved
Comment thread src/firestore/api-sort.ts Resolved
Comment thread src/firestore/api.ts Resolved
Comment thread src/firestore/api.ts Resolved
@bw-yuhogg
bw-yuhogg force-pushed the search-index-support branch 2 times, most recently from ad5b5ad to a673eeb Compare May 4, 2026 14:41
Comment thread src/firestore/api-sort.spec.ts Resolved
Comment thread src/firestore/api.ts Resolved
Comment thread src/firestore/api.ts Resolved
Comment thread src/firestore/api.ts Resolved
@bw-yuhogg
bw-yuhogg force-pushed the search-index-support branch 4 times, most recently from c6250b9 to cf29890 Compare May 6, 2026 13:55
@bw-yuhogg
bw-yuhogg requested a review from joehan May 6, 2026 14:11

@joehan joehan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - but please add a changelog entry before submitting

@bw-yuhogg
bw-yuhogg force-pushed the search-index-support branch from cf29890 to c09a364 Compare May 6, 2026 20:00
@bw-yuhogg
bw-yuhogg force-pushed the search-index-support branch from c09a364 to ac83b21 Compare May 6, 2026 20:13
@bw-yuhogg
bw-yuhogg merged commit 45f0c19 into main May 6, 2026
47 checks passed
@bw-yuhogg
bw-yuhogg deleted the search-index-support branch May 6, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants