Skip to content

Firebase Index No Deployed Error when using #6477

@solkennedy

Description

@solkennedy

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

When an index is added to a firebase collection that contains a vector embedding field (such as required by the "Vector Search with Firestore" extension), FlutterFlow displays an error and fails to properly deploy indexes. The index must be manually removed for FlutterFlow to resume managing indexes properly.

Expected Behavior

Flutterflow should IGNORE these indexes (any index it doesn't itself create?) and allow them to exist without displaying an error and refusing to manage indexes entirely

Steps to Reproduce

  1. Have a project with at least one firebase collections
  2. Create an index in firestore with a vector embedding field on a collection inside Firebase (see CLI example below)
  3. Do NOT add the vector field in the collection inside FF
  4. Perform ANY action in FF that "tickles" the firebase index check (such as adding a new collection query with a filter)
  5. See error: Firebase indexes not properly deployed for your project. Tap on settings to view deployment options.
  6. Go to Firebase setup and click Deploy for indexes
  7. See generic error, unable to deploy
    Example index that causes the error:
    gcloud firestore indexes composite create --project=[projectname] --collection-group=journal --query-scope=COLLECTION --field-config=order=ASCENDING,field-path=uid --field-config=vector-config='{"dimension":"768","flat": "{}"}',field-path=search_embedding

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT48lvHqx89goeFF0LruYPlagmA5JUM7aucNiup+VUk8J5DaPOxzP/TBaldWUs+0d29cOE6jsGU1+vfemvHtO/o3HwqrQa46+qVIEhWXfD6tV5eYPJCROW5/DfpbFWKb1KuG2yJQPrBsdV4870yqFt6AbBfYGJuyIWwnH+ahLZOK2SrDX1iXc2URm05KZDPz

Visual documentation

Image

Environment

- FlutterFlow version: 6.2.3
- Platform: Mac
- Browser name and version: n/a
- Operating system and version affected: n/a

Additional Information

I was able to successfully create full-text fuzzy search using this extension in my app, without needing to employ Algolia or another 3rd party extension or service. But this indexing bug is preventing me from moving it to production. This is not a feature request - I have successfully implemented the search in the app using custom functions, but I need FF to ignore these indexes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions