algolia / firestore-algolia-search

Apache License 2.0
112 stars 35 forks source link

Can't sync index of subcollection. #104

Closed Suyama-Daichi closed 2 years ago

Suyama-Daichi commented 2 years ago

Hello. thank to this solution.

In this time, I found that can't sync index of subcollection in version 0.5.9.

Reproduction.

Pattern A.

Pattern B.

As far as I know, It was working also Pattern B in past.

Would,nt works with sub collection now ?

Help me.

smomin commented 2 years ago

How many Algolia Extensions installed? Can you provide me configuration details for all the Algolia extension installation?

Suyama-Daichi commented 2 years ago

I installed 4 algolia extentions.

Two are v0.5.6, others are v0.5.9.

Three are simple config that target root collection. But the problem algoria extention's target index is a subcollection. This worked before.

smomin commented 2 years ago

What is the configuration on the Algolia Extension monitoring the subcollection?

Suyama-Daichi commented 2 years ago

@smomin The settings is bellow.

list_item_ids is subcollection. I retried but not work now too.

image

smomin commented 2 years ago

Well, Collection Path should be set to this pattern parent_collection/{parentId}/target_collection. What is your parent collection that has list_item_ids?

Suyama-Daichi commented 2 years ago

Oops!

I resolved it! The configuration was bellow.

image

Thank you.