algolia / firestore-algolia-search

Apache License 2.0
112 stars 35 forks source link

Configuring, when to store a document #91

Closed bennihz closed 2 years ago

bennihz commented 2 years ago

I could not find such a feature in the docs. Can I configure the function to only create an index in Algolia, if for example a 'verified' property is 'true'?

Haroenv commented 2 years ago

With the current implementation it's not possible to sync only part of the records, but you can use filters to choose not to display all records using Algolia

iansmathew commented 2 years ago

@bennihz I believe you can just set a transform function that exits the function without returning anything (as opposed to returning the data payload) and that would result in the object not being indexed

smomin commented 2 years ago

If I understand this issue, this might be related to issue #57. Take a look and see if this helps.