Firebase 在firestore[通配符]中为带点注释的动态路径创建索引?

Firebase 在firestore[通配符]中为带点注释的动态路径创建索引?,firebase,indexing,google-cloud-firestore,composite-index,Firebase,Indexing,Google Cloud Firestore,Composite Index,我的收藏创建如下: -products -productID -category [object] catitem1 - boolean catitem2 - boolean 现在我编写了一个查询,如下所示 this.afs.collection<Product>('products', ref => ref .where(`category.${categoryName}`, '==', true) .li

我的收藏创建如下:

-products
  -productID
    -category [object]
      catitem1 - boolean
      catitem2 - boolean
现在我编写了一个查询,如下所示

this.afs.collection<Product>('products', ref =>
    ref
      .where(`category.${categoryName}`, '==', true)
      .limit(limit)
);
由于
categoryName
可以创建,并且可以随时更改,因此我应该为每个categoryName添加索引,这将有数百个

是否有任何方法可以为
category.categoryName
创建通配符索引


我尝试使用
类别。*
但这是不可接受的。希望能在这里找到一些帮助。

您找到解决方法了吗?我现在在同一家公司situation@ahmedjaad不,我没有。。我不得不改变我的功能。感谢您的回复,我们的案例与您的有所不同,但在我们的案例中,变量是我们在应用程序中支持的语言,我们只支持有限数量的语言,因此我想我会坚持为每种语言创建索引,希望在firestore中看到这样的功能
this.afs.collection<Product>('products', ref =>
    ref
      .where(`category.${categoryName}`, '==', true)
      .orderBy('createdDate','desc')
      .limit(limit)
);