Filter Channels with custom metadata #6035
-
|
Hi everyone! I can't find out how to filter channels with a custom field, is there a way to do so? It seems that the documentation only points out how to filter with built |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @fgirardey, You can filter on custom fields by directly using the filed name in a filter: val filter = Filters.eq("your_custom_boolean_field", true)Assuming However we don't recommend doing this, because the queries are not optimised for custom fields, and you might experience performance issues. You can potentially take a look at filtering by Best regards, |
Beta Was this translation helpful? Give feedback.
Hi @fgirardey,
You can filter on custom fields by directly using the filed name in a filter:
Assuming
your_custom_boolean_fieldexists in theChannel.extraData.However we don't recommend doing this, because the queries are not optimised for custom fields, and you might experience performance issues. You can potentially take a look at filtering by
filter_tags(See the sectionFiltering by tagson this page). You can specify custom tags for the channel at creation time, which you can then use to filter against. Perhaps this approach would also be suitable for your use case!Best regards,
Petar