Skip to content
Discussion options

You must be logged in to vote

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 your_custom_boolean_field exists in the Channel.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 section Filtering by tags on 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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fgirardey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants